Mapping fields directly in Flow
Follow instructions below in order to create a Jira Issue when a Salesforce record is created and map values to Jira fields directly in flow.
1. Create a Record-Triggered Flow and start with variables creation.
2. Create a New Collection with the name jiraRequestFields as on screen.
3. Create Apex-Defined variable for every Jira fields that should get value from Salesforce object.
4. Create formulas to get values from Salesforce fields for mapping(Convert fields to Text, if they do not have text type.). Besides, this feature provides the ability to use values from related objects.
5. Using the Assignment element to map fields where:
- Variable field name is key of ‘Peeklogic Field’ record of Jira field you need to map;
- Variable value is a formula you created on step 4.
6. Using the second the Assignment element to add all mapping of fields to Collection jiraRequestFields.
7. In the Action element, choose Peeklogic Create Jira Issue action:
- Enter sObjectId: Record -> Id;
- Put the jiraRequestFields variable to the additionalFilds parameter;
- Enter automatedProcessId by Id from the created Automate Integration(Follow this link to create automation).
8. Flow should look as on the screenshot below.