Wednesday, July 19, 2023

Set input parameter as mandatory in logic app

 Hi guys,

                To create customers and vendors, instead of using the 'created record' trigger twice, I have created a new logic app. This logic app will be called from both places with the required inputs. In the child logic app, I have set the input parameters as mandatory.

In the screenshot provided, it shows that the 'Entity name' and 'Body' fields are marked as mandatory.


I have added the necessary code to make the 'Entity name' and 'Body' fields mandatory as highlighted in the screenshot.


After 'properties' I have added the 'required' tag and added the fields.

{
    "properties": {
        "EntityName": {
            "type": "string"
        },
        "body": {
            "properties": {},
            "type": "object"
        }
    },
    "required": [
        "EntityName",
        "body"
    ],
    "type": "object"
}


Keep Daxing!!




No comments:

Post a Comment