Mirror Calendar Table to another table

Hey everyone,

Im in the process of linking my table โ€œSessionsโ€ to my google calendar table. The aim is to have the google calendar entries update on individual booking changes and to also delete entries from the google calendar when events are cancelled.

My aim is to create an action for an add a new row to another table using values in this row. This will be from the โ€œsessionsโ€ table to the google calendar table. The idea is then to create a workflow to watch for changes on the start DateTime column to trigger changes. I also have a cancellation column in my โ€œsessionsโ€ which has a TimeStamp action when the status of a session is changed to cancelled. The idea is that this will then be triggered by the google cal table to delete the event.

So Iโ€™ve started to implement this by using the Title field in the google calendar table as a reference to the sessions table, but, when I use anything that contains numbers and letters it says "Value in field cannot be converted to type Ref. - Does anyone know why this would be?

The main reason I have written quite a lengthy message to describe what Iโ€™m doing is to find out whether Iโ€™m doing this totally wrong or whether I should be approaching it a different way?

Regards,
Ben

0 17 560
17 REPLIES 17

Please show the expression of what data youโ€™re putting into the column. Also shown the column definitions for the referenced table, and the calendar table.

Hey Marc,

I just wrote out a lengthy reply and the penny dropped.

I was trying to reference my session table using a concatenated value which wasnโ€™t the KEY for the table, a silly mistakeโ€ฆ

I was hoping to use the title column as the reference but this really needs to have the clients name. So Iโ€™ve resorted to using the description column as the ref, but this is a bit of a shame as I was also hoping to use this.

As I am only allowed to add virtual columns to the calendar column, I donโ€™t really see any other pre-existing redundant columns in that table to use for the ref column.

Regards
Ben

Is there a way to use a VC in the calendar table as the Ref column?

This is the only way to really make this workโ€ฆ

While this would workโ€ฆ this is the sort of SELECT() virtual column that needs to be avoided.

This is the major limitation with working with an actual calendar data source - very limited and you canโ€™t really do that much with them.

Well to be honest, id come to the conclusion that i really wont be needing that description column. The whole point is just for a quick visual reference anyways, and for the clinicans to use the google calendar to reference things they put in the app and things that wont be in the app such as free slots or personal events.

I dont think it would be an issue using a virtual column as a reference, but, I have an action that adds the ref to calendar table of the session table with an adds only workflow.

Problem is that the virtual column will only allow app formulas. At the time, i couldnโ€™t think of another way to reference the sessions table from calendar table with an app formula.

Can you match the record using the duplicated data? Presumably youโ€™re recording certain things like; a name, a location, a date, a time, etc.

ANY( FILTER( Sessions , AND( [Date] = [_THISROW].[Date] , โ€ฆ ) ) )

Yes, of course. Thanks so much Marc.

Ill give that a go. Im sure i can get it to work that way. Im currently working on @MultiTech_Visions looping action for some invoicing automation.

Regards
Ben

Itโ€™s not my handy work, @Steve was the mastermind behind that.
I just made a video showing how to do it.

That teamwork thoughโ€ฆ 3X_c_8_c894633685b607dcad8bd19f28d5c98f0a09a31f.gif

Yep!!! you guys sure do an amazing job, thanks for all your hard work to help us appsheet newbies. I really appreciate it, thats for sure.

Hi thereโ€ฆ would you mind sharing your video?

This was in reference to a โ€œlooping with actionsโ€ video - not anything about mirroring calendar tables.

Instead of trying to link the calendar to the sessions, link the session to the calendar - reverse the ref.

This way the reference data is stored inside the Sessions table - and not being calculated over and over in the VC.

  • Yeah, itโ€™s a little backwardsโ€ฆ but hey, when youโ€™re working with a calendar data sourceโ€ฆ you gotta do what you gotta do.

So inside the Session, have a ref to the calendar table.

  • then use an action to do the lookup to find the appropriate calendar entry and mark that as the ref.

Youโ€™ll be able to deref entries from the calendar into the sessionโ€ฆ youโ€™ll be able to easily tell an action (run an update on [this] calendar entry), etc.

Thats the way i have it matt, from the app to the calendar. Otherwise that would be some whole other mess i definitely wouldnโ€™t be able to get my tiny little brain around haha

No noโ€ฆ in the appโ€ฆ on the session tableโ€ฆ make a ref column that links to the calendar.

With this, youโ€™ll end up with a reverse reference of sessions on the calendar

Youโ€™re trying to record: โ€œthis calendar entry belongs to THIS sessionโ€ by recording the session link on the calendar.

Insteadโ€ฆ let the calendar entries live as they be, mark the sessions as belonging to the calendar entries.

Its certainly does the job, whilst saving the ยฃ240 id be paying for the zapier service.

Top Labels in this Space