fferpcore.LinkControlBodyHandlerglobal with sharing class LinkControlBodyHandler Methods
LinkControlBodyHandlerglobal LinkControlBodyHandler(Schema.SObjectType sourceObject, fferpcore.LinkingCorrelationStrategy correlation) This constructor is used to specify the object we want to amend the link control fields on and what kind of linking strategy to use. Input Parameters
Sample Code
withChildLinkControlglobal fferpcore.LinkControlBodyHandler withChildLinkControl(Id publicationId) Enable the population of child link control fields. Input Parameters
Return ValueThe instance of the LinkControlBodyHandler to enable fluent invocations. onMessagesglobal void onMessages(List<fferpcore.DeliveredMessage> messages) This method selects the link status fields on the sourceObject using fferpcore.LinkingCorrelationStrategy and fferpcore.LinkingFieldManager and applies the data from the LinkControl message. If no record exists for the correlation Id, the deliveries are marked in error. Input Parameters
Sample Code
|