Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rhadall
Engaged Sweeper II

I'm looking at the Lansweeper Trigger but cannot seem to get it to produce a test result. I've saved the flow, opened the trigger, selected Test and then clicked Enter Listening Mode.

If I use the Test URL shown I get an error message back of 

An error occurred while performing this action: Invalid payload data type. Expected Buffer.

Is there something else I need to do to be able to test this?

Thanks

1 ACCEPTED SOLUTION
Vicente_SC
Moderator
Moderator

That Listening Mode is a relatively recent change and may not function as expected. We’ll check internally how we can improve it.

 

However, you don’t actually need the Listening Mode to test your triggers. In the Lansweeper trigger, if you clicked on “Instance Deploy,” and then manually created a new asset, the event should appear under the Test tab (Run panel at the bottom). In the next step, add a "Get asset details" action and reference the asset key in the trigger event. That asset key is available at results.body.data.events. You should loop over that path, as a single trigger run can include multiple events.

 

For a working example of looping over trigger events, you can also check the “Apple Device Stock Transition” template.

Event triggered.png

 

Trigger reference.png

 

View solution in original post

4 REPLIES 4
Vicente_SC
Moderator
Moderator

That Listening Mode is a relatively recent change and may not function as expected. We’ll check internally how we can improve it.

 

However, you don’t actually need the Listening Mode to test your triggers. In the Lansweeper trigger, if you clicked on “Instance Deploy,” and then manually created a new asset, the event should appear under the Test tab (Run panel at the bottom). In the next step, add a "Get asset details" action and reference the asset key in the trigger event. That asset key is available at results.body.data.events. You should loop over that path, as a single trigger run can include multiple events.

 

For a working example of looping over trigger events, you can also check the “Apple Device Stock Transition” template.

Event triggered.png

 

Trigger reference.png

 

rhadall
Engaged Sweeper II

Thanks for the info - seeing test results now to be able to progress the flow

Vicente_SC
Moderator
Moderator

You should click on the "Instance deploy" button under the "Advanced Testing" area. Also remember to save your workflow draft first, and then click on "Instance deploy" with each workflow change, to test the workflow in testing mode.

You can also find more information here: https://community.lansweeper.com/t5/connectors/lansweeper-connector/ta-p/85179#toc-hId--1929132513 (note that some names changed recently, so we are still updating the docs)

rhadall
Engaged Sweeper II

Thanks. Think it is now listening for events. I have it set to listen for new assets and manually added one to see if it would trigger which it looks like it has done. However the execution data does not load. It's just sits on this screen (attached).
How can I see what information is available to use in the next steps? The goal is that it then sends an email or logs a ticket to our service desk to investigate. If possible I'd want to include some details of the new asset that has been found.

Forum

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now