Views:

Description

SmartFlowExceptionGuard allows you to execute multiple steps in a formula with the last step only executed if an exception occurs.  If the last step does execute then the message of the exception is available to access using the GetVar() function with the name 'smartflowexceptionguardmessage'

Signature

SmartFlowExceptionGuard(
  'step1',
  'step2', 
  'step3',
  'exceptionguard'
)

Example

ForEachRecord(

  FindRecords(
    'contact',
    'parentcustomerid', 
    [account.accountid], 
    'contactid'
  ), 

  SmartFlowExceptionGuard(
    UpdateRecord(
      'contact',
      CurrentRecord('contactid'),
      SetAttribute('address1_line1', [account.address1_line1]),
      SetAttribute('address1_line2', [account.address1_line2]),
      SetAttribute('address1_line3', [account.address1_line3]),
      SetAttribute('address1_city', [account.address1_city]),
      SetAttribute('address1_postalcode', [account.address1_postalcode]),
      SetAttribute('address1_country', [account.address1_country]),
      SetAttribute('description', '') 
    ), 

    UpdateRecord(
      'contact',
      CurrentRecord('contactid'),
      SetAttribute('description',
        'Address not synced with Parent Account because: ' + 
        GetVar('smartflowexceptionguardmessage') ) )
  )
)
 

Parameters

Name Type Description Required
fromdate xxxx xxxx xxxx
todate xxxx xxxx xxxx
interval xxxx xxxx xxxx