Mapping fields directly in Flow
Create Autolaunched Salesforce Flow
1. Create a New Collection with the name jiraRequestFields.
2. Add the ‘Get Records’ component and create variable ‘recordId’ to store SF record Id
3. Create Apex-defined variables as many as you need for mapping.
4. Create formulas to get values from Salesforce fields for mapping(Mapping is available for fields with type Text, Date, and Date/Time. Convert fields with type Date and Date/Time to Text as on screen.
5. Using Assignment map fields where:
- Variable field name is key of ‘Peeklogic Field’ record of Jira field you need to map;
- The variable value is a formula you created in step 4.
6. Using the second Assignment you need to add all mapping of fields to Collection jiraRequestFields.
Then go to Project Settings -> select Project and Issue Type -> manual mapping and add Flow you created