The field update parameters (fieldupdate1 and fieldvalue1) update one or more fields on the Salesforce record when a document is generated. Use them to automate updates after a merge, such as marking a record as processed, changing a status or recording the document version.

Syntax

As Other Parameters on the solution's Assign Behaviors page, one row each:

Parameter Name:  fieldupdate1    Parameter Value: Status
Parameter Name:  fieldvalue1     Parameter Value: Approved

In the solution button's URL (Docs Made Easy adds each Other Parameter to the button URL for you; see Parameters explained):

&fieldupdate1=Status&fieldvalue1=Approved

Values

ParameterValueEffect
fieldupdate1The field to update, for example StatusNames the field on the record that changes.
fieldvalue1The value to write, for example ApprovedThe value the field gets when the document is generated.
fieldupdate2, fieldvalue2, …Another field and valueEach fieldupdate parameter is paired with the fieldvalue parameter that has the same number.

Where to add it

  1. On your solution's Assign Behaviors page, click Other Parameter in the sidebar, then click Add Other Parameter.

  2. Enter fieldupdate1 and the field name in the first row. Click Add Row, enter fieldvalue1 and the new value, then click Save.

    Add Other Parameter window with a fieldupdate1 row and a fieldvalue1 row

Example

  • Input: a record whose Status is Not Approved.
  • Parameters: fieldupdate1=Status, fieldvalue1=Approved.
  • Output: the document is generated and the record's Status becomes Approved.
SyntaxField value beforeField value after generation
fieldupdate1=Status, fieldvalue1=ApprovedNot ApprovedApproved

Works in

The field update is set on the solution, not written in a template, and changes the Salesforce record rather than the document.

Notes

Common errors

  • "Salesforce returned an error" when the document is generated. Salesforce rejected the update, for example because of a validation rule or a value the field doesn't accept. Read the text after the error and fix the value. See DME-SF-000.
  • "Insufficient access rights". The user can't edit the record or the field. Check record access and field-level security. See DME-SF-004.
  • The document generates but the field doesn't change. Check that each fieldupdate has a fieldvalue with the same number, then work through the document didn't generate checklist.