- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 09:02 AM
I'm creating a Flow to achieve the followings. Could someone please advise me on how to implement this in Flow Designer?
1. Lookup multiple records for Table-A with some filter condition.
2. For each record in Table-A, create new records in Table-B based on some field values of Table-A.
3. When creating each record in Table-B, add attachments retrieved from each record in Table-A.
Best Regards,
Aki
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 11:17 AM
Below approach might help you fulfill your requirement.
First create a custom action which takes 2-inputs (Table A record sys_id, Table B record sys_id). Create a script step to copy attachments. In your script step utilize
GlideSysAttachment.copy('<Table_A_Backend_Name>', inputs.<Table_A_Record_SysID>, 'Table_B_Backend_Name', inputs.Table_B_Record_SysID);
Then try utilizing below steps.
- Use Look Up Records action on Table A.
- Use For Each Flow Logic to iterate through each record found from Table A
- Use Create a Record action to create records in Table B.
- Use Custom Action which you created above to copy attachments from Table A record to Table B record. Make sure to pass the records sys_ids.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 11:17 AM
Below approach might help you fulfill your requirement.
First create a custom action which takes 2-inputs (Table A record sys_id, Table B record sys_id). Create a script step to copy attachments. In your script step utilize
GlideSysAttachment.copy('<Table_A_Backend_Name>', inputs.<Table_A_Record_SysID>, 'Table_B_Backend_Name', inputs.Table_B_Record_SysID);
Then try utilizing below steps.
- Use Look Up Records action on Table A.
- Use For Each Flow Logic to iterate through each record found from Table A
- Use Create a Record action to create records in Table B.
- Use Custom Action which you created above to copy attachments from Table A record to Table B record. Make sure to pass the records sys_ids.