You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no opportunity has yet been created (there is no sf_opportunity_id):
Button on project page: "Create new opportunity"
List of Record Types displayed, user chooses
Page with fields for new Oppty is displayed
When submitted, new oppty in SF is created
That returns sf_opportunity_id, which is stored in hypha project model
If sf_opportunity_id exists when project is displayed, button with "See opportunity" with link to salesforce is displayed.
Requires: Project, Opportunity and RecordType models
Project Model
Revision: Add field sf_opportunity_id: sf_opportunity_id = models.CharField(max_length=20, null=True, blank=True)
RecordType and Opportunity Models
(See specific model definitions at bottom of Notion document relating to the specific Reset project)
Page:
Path: /apply/projects/
Location: Under "Actions to Take"
Condition:
If SALESFORCE_INTEGRATION: if no sf_opportunity_id in project, show "add opportunity button", otherwise, show button that says "Show opportunity in Salesforce" linking to the Salesforce Record.
Link is generated from HOST database variable, plus: 'lightning/r/Opportunity/sf_opportunity_id/view': url =DATABASES['salesforce']['HOST'] + '/r/Opportunity/' + sf_opportunity_id + '/view'
Actions:
Add opportunity button leads to a pop-up form, giving user a choice of record types
Feature Name: "Add Opportunity Button"
Basic Workflow:
Requires: Project, Opportunity and RecordType models
Project Model
sf_opportunity_id = models.CharField(max_length=20, null=True, blank=True)
RecordType and Opportunity Models
(See specific model definitions at bottom of Notion document relating to the specific Reset project)
Page:
Condition:
url =DATABASES['salesforce']['HOST'] + '/r/Opportunity/' + sf_opportunity_id + '/view'
Actions:
The text was updated successfully, but these errors were encountered: