Skip to content

eehjunggnujhee/ListViewCloneMultiples

Repository files navigation

Clone Multiple Records with Related records from the Listview

Scenario A: Create a custom action to clone multiple records from the listview including related records. A staff member needs to update external id and neccessary fields for each record at the time of the cloning action.

Builind Blocks : Rest API, JSON, InvocableMethod, ScreenFlow, Custom Quick Acition Button

Summary: Your company offers a certification program requiring an application, references and review/training processes hosted in a proprietary software. The certification lasts a year and applicants are required to maintain their certifications by submitting the renewal request to the app. When a returning applicant submits the interest to return, the app creates an a renewal application by cloning the previously existing application with related supplements to start the new review process. This workflow eliminates the full reviewing process for the returning applicants.

Salesforce REST API/JSON integration of the external data comes in when there is a new application record; however, the cloned application of the returning applicant should be cloned manually from Salesforce due to irregularity of each applicant's experience after the first program.

You, as a Salesforce guru, provide solutions for the staff member to clone multiple records from the application listview including related records and to add new info on the renewed application.

Screenflow Overview

Scrren Flow Overview.

How to Modify Dynamic Apex

  1. DynamicQueryInvocable.cls

Make dynamic query with selected record ids passed from the listview.

FlowInputParameters

FlowOutputParameters

  1. CloneMultipleParentRecordsInvocable.cls

FlowInputParameters

FlowOutputParameters

  1. CloneMultipleRelatedRecordInvocable.cls

This class contains one invocable method which processes the cloning of child object records when the cloning of parent object is being initiated. The method does not require a uer input though it can be easily configured by adding new variables to FlowInputParameters inner class.

FlowInputParameters

FlowOutputParameters

How to Modify ScreenFlow

  1. SFL_Clone_Multiples_with_Related_Records_From_ListView

Solution to these Issues

  1. Salesforce Idea: Clone API Call
  2. Clone Opportunity through Salesforce REST API

Credit

About

Independent project by JM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages