I'm generating a custom workflow to generate and send out reports to clients.
The calling entity (new_remittanceadvice has two GUIDs that I need to get in the workflow to pass through to the report.
One is easy as its the primaryEntityId , my problem is how to get the guid from new_suppierrefid
code so far ;
Dim tracingService = executionContext.GetExtension(Of ITracingService)() Dim workflowContext = executionContext.GetExtension(Of IWorkflowContext)() Dim context As IWorkflowContext = executionContext.GetExtension(Of IWorkflowContext)() Dim serviceFactory As IOrganizationServiceFactory = executionContext.GetExtension(Of IOrganizationServiceFactory)() Dim service As IOrganizationService = serviceFactory.CreateOrganizationService(context.UserId) Dim targetEntityImage As Entity = DirectCast(workflowContext.InputParameters("Target"), Entity) ' Prepare report parameter. Dim parameters(1) As ReportServer.ParameterValue ' Set Report ID parameters(0) = New ReportServer.ParameterValue() parameters(0).Name = "remittanceadvicesid" parameters(0).Value = context.PrimaryEntityId.ToString
*This post is locked for comments