How to set google meet organizer dynamically through Create Event action under Google Calendar Spoke

Tejaswi Gundu
Tera Contributor

Hi All, Good day!

 

We have a requirement from client to Initiate a google meet when user clicks on UI Action. 

We are achieving this functionality through an UI page from where we are getting some inputs like attendees, start time and end time and called a script include from it.

From Script Include we are calling 'Create Event' OOB action under Google Calendar Spoke Application and passing inputs through the same.

Everything is working as expected but organizer is displaying my name even though I didn't create it.

It should display current logged in user who clicks on 'Initiate Google Meet' UI Action and create it.

Passing inputs:

var inputs = {};
                    inputs['calendar_id'] = 'primary';
                    inputs['summary'] = sourcenumber + ' - ' + shortdesc; // String (Full UTF-8)
                    inputs['description'] = sourcenumber + ' - ' + shortdesc; // String (Full UTF-8)
                    //inputs['all_day'] = ''; // True/False
                    inputs['start_time'] = starttime; // Date/Time
                    inputs['end_time'] = endtime; // Date/Time
                    //inputs['time_zone'] = ''; // Dynamic Choice
                    //inputs['location'] = ''; // String (Full UTF-8)
                    //inputs['color'] = ''; // Choice
                    //inputs['recurrence'] = ''; // Object
                    inputs['create_hangout_meet'] = 'True'; // True/False
                    inputs['attendees'] = JSON.stringify(attendeesarray); // Array.Object
                    //inputs['organizer'] = JSON.stringify(org);

I've tried passing the organizer information via inputs but it is throwing error.

Error: The inputs provided to the action: Create Event within application scope: sn_gcalendar_spoke are incorrect, please refer to the definition

 

Please help me to achieve this functionality.

Thank you!

 

Regards,

Tejaswi Gundu

0 REPLIES 0