Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -111,9 +111,10 @@ def field_exists(sf, object_name, field_name):
|
|
111 |
print(f"⚠️ Error checking field {field_name}: {e}")
|
112 |
return False
|
113 |
|
114 |
-
# New function to generate Salesforce dashboard URL
|
115 |
def generate_salesforce_dashboard_url(supervisor_name, project_id):
|
116 |
-
|
|
|
117 |
|
118 |
# Dashboard button function
|
119 |
def open_dashboard(role, supervisor_name, project_id):
|
|
|
111 |
print(f"⚠️ Error checking field {field_name}: {e}")
|
112 |
return False
|
113 |
|
114 |
+
# New function to generate Salesforce dashboard URL (Visualforce Page)
|
115 |
def generate_salesforce_dashboard_url(supervisor_name, project_id):
|
116 |
+
# Ensure you replace the following URL with your actual Salesforce Visualforce page URL
|
117 |
+
return f"https://your-salesforce-instance.lightning.force.com/apex/DashboardPage?supervisorName={supervisor_name}&projectId={project_id}"
|
118 |
|
119 |
# Dashboard button function
|
120 |
def open_dashboard(role, supervisor_name, project_id):
|