Hi Community,
I have a Confiforms setup that creates a new page whenever a new form entry is being submitted. For that I am using an IFTTT rule:
Event: onCreated
Action: Create Page
Page Title: [entry.name]
Now I would like to make sure that whenever the form field [name] is being changed after the initial submission the page title of the created page will change accordingly. To do so I set up another IFTTT rule as follows:
Event: onModified
Action: Rename Page
Filter: [entry.name != old_entry.name]
Page: https://confluence.company.int/display/Pay/[entry.name]
New page title: [entry.name]
However, the page title remains the same. Does anyone have an idea about what might be wrong here?
Thanks in advance!
Might be easier to provide a demo (video), as there is quite a few things that need to be changed
Storage format for the reference
<ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="6c5f1000-b8a0-4f07-90b5-4e4dec1ccf31"><ac:parameter ac:name="formName">form</ac:parameter><ac:rich-text-body><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="ae6540b0-10ab-42f9-95eb-a6f9cfa6e81e"><ac:rich-text-body><p><br /></p></ac:rich-text-body></ac:structured-macro><p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="513744df-99bb-4334-a272-83b1fdebe858"><ac:parameter ac:name="fieldName">name</ac:parameter><ac:parameter ac:name="fieldLabel">name</ac:parameter><ac:parameter ac:name="type">text</ac:parameter><ac:parameter ac:name="required">true</ac:parameter></ac:structured-macro></p><p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="962f2e6c-0a64-47d1-aa7a-5e35238c145f"><ac:parameter ac:name="fieldName">createdPage</ac:parameter><ac:parameter ac:name="fieldLabel">createdPage</ac:parameter><ac:parameter ac:name="type">hidden</ac:parameter></ac:structured-macro></p><p><br /></p><p>-- create page</p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="0dfb60b0-33e2-40a5-985b-2d5c84eb9879"><ac:parameter ac:name="action">Create Page</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="title">[entry.name]</ac:parameter><ac:parameter ac:name="resultName">PC</ac:parameter><ac:rich-text-body><p>Created page</p></ac:rich-text-body></ac:structured-macro><p>-- save back the id of the created page</p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="bd30982a-65b8-462e-b2d1-1a7fe0a7e08f"><ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="title">entryId=[entry.id]&createdPage=[iftttResult_PC.id]</ac:parameter><ac:rich-text-body><p><br /></p></ac:rich-text-body></ac:structured-macro><p>--- react on name field change and rename the page</p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="88356133-fcbf-48a5-aefe-169b997297fe"><ac:parameter ac:name="condition">hasChanged(name):true</ac:parameter><ac:parameter ac:name="action">Rename Page</ac:parameter><ac:parameter ac:name="event">onModified</ac:parameter><ac:parameter ac:name="title">[entry.createdPage]</ac:parameter><ac:parameter ac:name="who">[entry.name]</ac:parameter><ac:rich-text-body><p><br /></p></ac:rich-text-body></ac:structured-macro><p><br /></p></ac:rich-text-body></ac:structured-macro><p><br /></p><p><ac:structured-macro ac:name="children" ac:schema-version="2" ac:macro-id="607a0a09-0994-41c5-8d71-bce39ee4e6bb" /></p>
Hope it helps
PS, the page title is shown as old is because the "children" macro uses cache that does not get updated immediately (and therefore you see old page title after the submit and updated one after page refresh)
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.