Skip to main content

Hello,

Based on this post we have found https://community.thinkwisesoftware.com/questions-conversations-78/open-a-universal-gui-document-from-an-externa-application-4200?tid=4200&fid=78

, we made a deeplink process flow that simply executes a task, then opens a document filtered on a record with a given id.

 

 

We tried triggering this process flow externally with an API call inside a Preview component (iframe), and while it is successful, nothing happens. What could the issue be - are we missing something from the POST API call (we include the mandatory necessary id in the request body) or is this due to the component not communicating with the parent page?

 

Best regards,

Valentin

Hi ​@Valentin,
 

We tried triggering this process flow externally with an API call inside a Preview component (iframe), and while it is successful, nothing happens.

I'm assuming you're currently trying this with an HTTP call, is this correct?
If so, the platform doesn't understand which Universal is supposed to respond to this process flow.
What you're looking for instead is starting a process flow on Universal from the Preview, you can do that using the following example JavaScript in the HTML viewed in the Preview component:

window.parent.postMessage({
type: 'startProcessFlow',
processFlowId: 'refresh_document_detail_from_component',
dataParams: {}
}, '*');

Make sure to adjust the processFlowId to your ID.

 

Kind regards,
Leroy Witteveen


Yes, this works! We tried to directly post the flow variables that's why it wouldn't work. Thank you so much!


Reply