Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

_previousState use when setting field values

I am trying to write an auto logging IFTTT to copy Confiforms data from one table to another when a specific field in the source table chnages.

I have created the IFTTT rule onModified and it fires to copy the data from the source to the destination tables when hasChanged identifies a change to the field.

From reading the hasChanged virtual function info, I understand that there is a "virtual property" called "_previousState". Seems simple enough to this old dog and I think I can use it to set parameters of my copy Confiforms Data. No luck. 

My fear is that the _previousState can only be used in conditions and filters and is not accessible when trying to set parameter values, see image for my "hoped for" usage:

_previousState.png

2 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 19, 2022

Hi

Previous state exists only when record is about to be updated (or new value is assigned) and is accessible in IFTTTs and in field definition rules

When you copy data then there is no previous state - as ConfiForms takes a dataset you tell it to copy and copies it at the destination you tell

Alex

Thanks @Alex Medved _ConfiForms_ 

Any recommendations or articles you can provide on how to capture the before state of a field?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 19, 2022

Well, using the mentioned _previousState, but you can get it (inly) for the record that initiates the IFTTT

Alex

That is how I thought I was calling it when the record is modified, take the _previousState value and put it into another table/field.

Thanks anyway.

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 19, 2022

Use this IFTTT instead  https://wiki.vertuna.com/display/CONFIFORMS/Configuring+ConfiForms+IFTTT+actions+and+rules#ConfiguringConfiFormsIFTTTactionsandrules-Create(Update)ConfiFormsEntry

As explained earlier, when you copy data from one form to another.., there is no previous context/state available, as... well.. you can copy whatever you want whenever you want. And it might not be even involving the current record in any way

Let me dig into this deeper. My problem seems to be I don't know how to effectively search the WIKI to get these articles.

As always, thanks for the guidance and direction!

I did a sequence of IFTTTs to get the desired result. A bit kludgy but is working.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events