_previousState use when setting field values

Chris Iacovelli
Contributor
December 19, 2022

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_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 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

0 votes
Chris Iacovelli
Contributor
December 19, 2022

Thanks @Alex Medved _ConfiForms_ 

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

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 19, 2022

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

Alex

Chris Iacovelli
Contributor
December 19, 2022

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_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 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

Chris Iacovelli
Contributor
December 19, 2022

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!

Chris Iacovelli
Contributor
January 3, 2023

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