Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Static Data

Create an Action Button

To allow the end user to call IdealDoc and create a merge document, a predefined Salesforce screen flow called IdealDocGenericActionScreenFlow can be used.

Because it is currently not possible in Salesforce to pass dynamic parameters to a flow from a quick action (a feature which will be hopefully added by Salesforce in future release), a simple naming convention for the quick action has been defined.

To pass the IdealDoc environment and the information which category of IdealDoc templates should be available for selection the name of the quick action button has to follow a certain naming convention. An example quick action definition looks like this:

...

The name of the quick action needs to comply with the following pattern:

<Any Name>_<Attach to SF (attach or noattach)>_<Format (pdf or docx)>_<DialogType (single or multi)>_<IdealDoc Template Category>_<IdealDoc Setting Data Name>

for example: CreateIdealDoc_attach_pdf_single_Invoice_prod

The IdealDoc Template Category (“Invoice” in this example) will be used to show only the IdealDoc Templates with Category equals to “Invoice” for selection. If no template filter should be applied the term “any” can be used as category. E.g. CreateIdealDoc_single_any_prod

The IdealDoc setting name (“prod” in this example) is used to query the IdealDoc Setting record with this name for connecting to the IdealDoc service.

After creating the quick action it needs to be added to the specific lightning page:

image-20250127-153042.pngImage Added

Once added to the lightning record page the action button can be used to create the IdealDoc document:

...