Confiforms: IFTTT result error

Bartosz Drożdżal
Contributor
April 22, 2024

Hi @Alex Medved _ConfiForms_ 

I created IFTTT onError that sends an email.

The email is sent when the previous IFTTT (which create a task in Jira) is not invoked correctly and an error occurs.

In the e-mail I would like to receive the content of the error regarding the previous IFTTT.
How to do it?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 22, 2024

Hi @Bartosz Drożdżal 

Do you know what is returned in the result of the failed call? You can write it back to some hidden field in ConfiForms and then have that field reference in the email

Alex

Bartosz Drożdżal
Contributor
April 22, 2024

@Alex Medved _ConfiForms_ 

My errors most often may be related to the JSON structure.

For testing purposes, I receive, for example, this error:
error.PNG
I would like to add the content of this error to the email

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 22, 2024

I am pretty sure these errors can be mitigated with a proper template - using escapeJSON for values that can break JSON and using Velocity templating (#if #else #end) for optional values

Bartosz Drożdżal
Contributor
April 22, 2024

@Alex Medved _ConfiForms_ 

Ok, but I'm not talking strictly about the error itself. I can handle him.

I want to extract the content of this error to the email that is sent in IFTTT onError.

Bartosz Drożdżal
Contributor
April 23, 2024

@Alex Medved 

Is there any solution?

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 23, 2024

The error should be available in the IFTTT result and you should be able to access it as per documentation from [iftttResult_RESULTNAME] 

Bartosz Drożdżal
Contributor
April 24, 2024

@Alex Medved _ConfiForms_ 

I'm trying to do this with IFTTT onCreated / Create confifroms entry / error=[iftttResult_RESULTNAME].

Then in IFTTT onError/send email I add field error, but I don't receive any return value in the email. The error field is empty.

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 24, 2024

OK, after looking more closely into this I have to admit that we need to make some enhancements into ConfiForms to make it work for your user case

Expect this to be available in the upcoming version of ConfiForms (3.10.8)

Bartosz Drożdżal
Contributor
April 24, 2024

Great, thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events