Default string value in custom app "Action" will not show up in default?
Status: Closed · Asked by kalintro on · 0 views
Hi! Anyone know why string default values will not show up in the workflow when I try too add the app and action? Boolean values (default) works, but not strings..

Result: 
Hey @kalintro,
Thank you for connecting with us.
Please note that the default value will not appear on the frontend. Instead, it is internally configured and automatically passed when there is no user response. This setup ensures that when the action is executed, the default value will be reflected in the JSON response, rather than being visible in the input field.
As I have tried with Boolean it will not reflect the value that I will put up on the default as shown in the attachments.
Best regards,
Nivesh Jain
Attachments


Thank you for the clarification @Nivesh !
Do you also know why my Authroization connection only works if i add a default value in the action header?

Connection in the workflow which fails when i manually add the api key when the default value is empty:

Attachments

Hey @kalintro,
I wanted to inform you that the API key should be passed in the query parameter, for example, {{api_key}}. The connection setup will follow the configuration from the App section page, and the authorization will be handled accordingly. Ensure that the same field type and naming are used in the default settings, and then try again—it should work.
For more details visit here: Learn more
Let me know if that helps you.
@Nivesh Thank you, it solved it!
One last question: is it possible to add some "if else" logic to the raw body? For example, I want the selfEncrypt object only to be present IF the Algorithm parameter is NOT empty and has a value, is there a way to do that (the blue should then not be present or just {} if there is not a value present in Algorithm?
Hey @kalintro,
I’m glad to hear that the issue has been resolved for you.
In this case, you'll need to provide a default value for all selfencrypt fields. The default value should be "{{pc_skip_field_with_parent}}".
By setting this default value, if the "selfencrypt" fields are empty, the "selfencrypt" object will be removed from the JSON raw body. This is necessary because there is no way to use an "if-else" statement directly within the JSON.
Feel free to reach out if you encounter any further issues. I’ll be happy to assist you.
Best regards,
Nivesh Jain
@Nivesh Thank you! All solved :)