Trouble using trigger custom event when data changes

My problem:
I have a button a user clicks that will trigger an API call that happens in the backend, and I need to wait for a user field to be updated, nextURL, (as a result of the API call) to be updated to then have the user navigated to that page.

I created a custom event, create-link, which simply has a text parameter (link), and navigates to the link.

In the workflow, I have the button click schedule the API call, then I added, trigger create-link when data changes. My plan was to put current user as the thing to watch, and the field to watch nextURL field. However, that plan was foiled.

image

It shows the message above when I place the current user on thing to watch, which confuses me. The field to watch is also empty with no options to select. I have seen similar posts and tried doing those actions, such as moving the trigger to when page is loaded, but it has the same result.

What am I doing wrong here?

You need to have a User parameter on the custom event if the thing to watch is a user. (in fact, the first parameter on the custom event must be User).

1 Like

Thank you for that. I had tried putting in a user parameter initially into the custom event, but it was second and not first.

Got it working as I hoped and now I understand better the intent, as there was no need for a “link” parameter since the user object had the link, so I just needed to reference the user and access the link field.

Just to be sure I understand this properly, having another parameter wouldn’t make any sense for this type of custom event, as there would be no way to fill that parameter, since the trigger custom event when data changes is only going to supply the thing to watch (in my case, user) to the custom event, correct?

This topic was automatically closed after 70 days. New replies are no longer allowed.