I am creating a google calendar event and I'm setting a few parameters through the Parameters tab:
What I want to do, though, is to set additional properties of the event, such as its color. Based on the copilot response, I should add a new parameter in the form of
"newEvent/colorId": "8"
but this is not supported in the Parameters tab and I cannot edit the Code view tab. Is this kind of editing really not supported or is there a workaround?
Thanks!
In other words, I'd like my code to simply look like this:
"parameters": {
"calendarId": "xxxxxx",
"newEvent/start": "@triggerOutputs()?['body/end']",
"newEvent/end": "@addMinutes(formatDateTime(triggerOutputs()?['body/end'], 'yyy-MM-ddTHH:mm:ssZ'),15)",
"newEvent/summary": "post meeting buffer",
"newEvent/description": "A buffer to avoid back to back calls", "newEvent/colorId": "8"
},
If you are using the Google calendar action, you can only set values that are listed in the action. You cannot set additional properties in the code view. That is just for informational purposes so you can see the JSON code that is sent.
I don't use any of the Google actions, but to do what you want, you would need to use the Google Calendar API to make an HTTP POST request. When Copilot said to add the parameter to the code, it probably assumed you were making an HTTP POST request through the API and wanted you to add it to the body of the request.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.