<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/discussions/f/best-practices/28491/how-can-i-prepopulate-the-fields-of-current-task-with-previous-completed-task-details</link><description>how can I prepopulate the fields of current task with previous completed task details?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112233?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 13:40:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f64100f-08b6-4a97-80ec-0071015bd243</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;from what I can tell, &amp;quot;local!repeatedInternalComment&amp;quot; is text, and much like what the error message you showed here suggests, you&amp;#39;re trying to save that into the target of ri!internalComment, which is a CDT.&lt;/p&gt;
&lt;p&gt;As a refresher, when you call a!save, the first parameter (whether a single item or a list of items) is the TARGET of the save operation, and the second parameter is the VALUE.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/pastedimage1683207456005v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;If your TARGET is or includes a CDT, that implies that you&amp;#39;re trying to overwrite that &lt;em&gt;entire&lt;/em&gt; cdt value with the item in the VALUE parameter, which in this case is just text.&amp;nbsp; This is *exactly* what your error message is telling you:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/pastedimage1683207510955v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;You should probably simplify your a!save statement, remove the (misspelled) local!int&lt;span style="color:#ff9900;"&gt;re&lt;/span&gt;nalComment target, and save &lt;em&gt;directly into the comment property of&lt;/em&gt; ri!internalComment.&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!save(
  ri!internalcomment.comment,
  local!repeatedinternalcomment
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Additionally&lt;/strong&gt;&lt;/em&gt;: i&amp;#39;m unclear why you&amp;#39;re even trying to do this save on the Button Click here, because from what I can tell from your code, you&amp;#39;re manually modifying the value of ri!internalComment every time the text value is updated as well.&amp;nbsp; This is OK, but it also means that you don&amp;#39;t really need to worry about doing the saveInto in the button - that technique is really reserved for when you want to copy local values (that is, things being stored ONLY in local values) into a Rule Input, upon Form Submission (and not until then).&amp;nbsp; There&amp;#39;s not much point in doing both.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112232?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 13:31:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ac1ff40-79c7-4887-81b9-535c9252b409</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
local!internalcomment: if(
    rule!APN_isBlank(index(ri!internalcomment, &amp;quot;comment&amp;quot;, {})),
    {},
    index(ri!internalcomment, &amp;quot;comment&amp;quot;, {})
  ),
  
   
  local!BCreviewer: a!defaultValue(
    value: local!internalcomment,
    default: rule!repeatedcomm(ISR_Studyrequest: ri!studyRequest.studyRequestId)
  ),

  (...)
  
    value: local!repeatedinternalcomment,
    saveInto:{local!internalcomment,
                  a!save(
                    ri!internalcomment,
                    &amp;#39;type!{urn:com:appian:types:ISR}ISR_Studycomment&amp;#39;(
                      commentId: if(
                        rule!APN_isBlank(ri!internalComment.commentId),
                        {},
                        ri!internalcomment.commentId
                      ),
                      comment: local!internalcomment,
                      isInternal: true(),
                      reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,
                      isActive: true(),
                      createdBy: loggedInUser(),
                      createdOn: now(),
                      updatedBy: loggedInUser(),
                      updatedOn: now()
                    )
                  )}
                  {local!repeatedinternalcomment,
                  a!save(
                    ri!internalcomment,
                    &amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(
                      commentId: if(
                        rule!APN_isBlank(ri!internalcomment.commentId),
                        {},
                        ri!internalComment.commentId
                      ),
                      comment: local!repeatedinternalcomment,
                      isInternal: true(),
                      reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,
                      isActive: true(),
                      createdBy: loggedInUser(),
                      createdOn: now(),
                      updatedBy: loggedInUser(),
                      updatedOn: now()
                    )
                  )},
  
  (...)
  
  primaryButtons: {
    a!buttonWidget(
      label: &amp;quot;Submit&amp;quot;,
      submit: true(),
      
      saveInto: {
        ri!buttonPressed,
        
        a!save(
          {ri!internalcomment,
          local!intrenalcomment},
          local!repeatedinternalcomment
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the all the helps Mike.&lt;/p&gt;
&lt;p&gt;I am trying the above code but it showing the error like this.If I use the code without using the a!save function at Submit button it was working fine but when I am trying to save that by using the a!save I am getting the error like this&amp;nbsp;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/Screenshot-_2800_133_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112228?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 13:06:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03a770f4-f580-405c-9091-5c2f767b01c1</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="138450" url="~/discussions/f/best-practices/28491/how-can-i-prepopulate-the-fields-of-current-task-with-previous-completed-task-details/112219#112219"]How can I use a!save function for above code at the submit button [/quote]
&lt;p&gt;I can&amp;#39;t really judge by the code you&amp;#39;ve posted here as you didn&amp;#39;t include your button or any hint of what you&amp;#39;re currently trying.&amp;nbsp; My example directly above contains a button with two a!save() commands - did you find this to not work? Are you having a particular issue?&amp;nbsp; As-is, I can&amp;#39;t really even guess as to any particular suggestions.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/pastedimage1683205599938v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also: thanks for using a Code Box, but I&amp;#39;d advise/request you to also make sure you copy your code directly out of the expression/interface editor before pasting, in order to preserve indentation -- because without any indentation, it stays pretty difficult to read in its current form.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112219?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 12:12:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:effad6b4-c753-433d-8841-9324211fc40a</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localvariables(

local!internalComment: if(
rule!APN_isBlank(index(ri!internalComment, &amp;quot;comment&amp;quot;, {})),
{},
index(ri!internalComment, &amp;quot;comment&amp;quot;, {})
),

local!repeatedinternalcomment:a!defaultValue(value:local!internalComment,
default: rule!ISR_get_internalcomment_for_repeatedfinalchecks(ISR_Studyrequest: ri!studyRequest.studyRequestId)),

a!sideBySideItem(
item: a!paragraphField(
label: &amp;quot;Internal Review Comments&amp;quot;,
labelPosition: &amp;quot;ABOVE&amp;quot;,
value:local!repeatedinternalcomment,
saveInto:
{local!internalComment,
a!save(
ri!internalComment,
&amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(
commentId: if(
rule!APN_isBlank(ri!internalComment.commentId),
{},
ri!internalComment.commentId
),
comment: local!internalcomment,
isInternal: true(),
reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,
isActive: true(),
createdBy: loggedInUser(),
createdOn: now(),
updatedBy: loggedInUser(),
updatedOn: now()
)
)}
{local!repeatedinternalcomment,
a!save(
ri!internalComment,
&amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(
commentId: if(
rule!APN_isBlank(ri!internalComment.commentId),
{},
ri!internalComment.commentId
),
comment: local!repeatedinternalcomment,
isInternal: true(),
reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,
isActive: true(),
createdBy: loggedInUser(),
createdOn: now(),
updatedBy: loggedInUser(),
updatedOn: now()
)
)},
refreshAfter:&amp;quot;UNFOCUS&amp;quot;,
height: &amp;quot;MEDIUM&amp;quot;,
validations: if(
len(ri!internalComment.comment) &amp;gt; cons!ISR_PARAGRAPH_LENGTH,
&amp;quot;Comment must be &amp;quot; &amp;amp; cons!ISR_PARAGRAPH_LENGTH &amp;amp; &amp;quot; characters or fewer&amp;quot;,
{}
)
)&lt;/pre&gt;How can I use a!save function for above code at the submit button to save the local variable values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112133?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 16:49:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5468e0f8-1afe-4392-b3c3-b06aea5407bc</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This version would be what I&amp;#39;d suggest as a starting point for handling both value fields in a similar manner, BTW.&lt;/p&gt;
&lt;p&gt;Also thanks for confirming - as always I&amp;#39;d request clicking verify on any/all answer(s) of mine you found directly helpful, lol.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(

  /* instead of multiple messy if(isNull()) statements, simply do that check here, then only use this local variable until Submit time */
  local!BCreviewer: a!defaultValue(
    value: ri!studyMedicalReview.BCReviewedBy,
    default: rule!ISR_toget_BC_Reviewer(ISR_Studyrequest: ri!studyRequest.studyRequestId)
  ),
  local!BCReviewedOn: a!defaultValue(
    value: ri!studyMedicalReview.BCReviewedOn,
    default: null()
  ),

  (...)

  a!sideBySideLayout(
    items: {
      a!sideBySideItem(
        item: a!textField(
          label: &amp;quot;Business Conduct Reviewer&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          value: local!BCreviewer,
          saveInto: local!BCreviewer,
          showWhen: if(
            local!businessCounduct,
            true(),
            false()
          ),
          required: if(
            ri!studyMedicalReview.decision = cons!ISR_TEXT_DECISION_MEDREVDEC_FRINFO_CODE,
            false(),
            true()
          )
        )
      ),
      a!sideBySideItem(
        item: a!dateField(
          label: &amp;quot;Business Conduct Reviewed On&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          value: local!BCrevieweddate,
          /* If the rule value is not there I mean if there is no reviewer for that studyRequestID then value goes to table */
          saveInto: local!BCrevieweddate,

        )
      )
    }
  ),

  (...)

  primaryButtons: {
    a!buttonWidget(
      label: &amp;quot;Submit&amp;quot;,
      submit: true(),

      saveInto: {
        ri!buttonPressed,

        a!save(
          ri!studyMedicalReview.BCReviewedBy,
          local!BCReviewer
        ),
        a!save(
          ri!studyMedicalReview.BCReviewedOn,
          local!BCReviewedOn
        )
      }
      
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112132?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 16:43:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22678bb7-94f5-46f6-870d-13c1fa59c409</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thank you so much Mike it was helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112131?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 16:21:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c4e8fd0-4b53-474b-a2a3-1e80040c7223</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="138450" url="~/discussions/f/best-practices/28491/how-can-i-prepopulate-the-fields-of-current-task-with-previous-completed-task-details/112130#112130"]So how can I save the prepopulated data without editing into the table again with same studyrequest id=2[/quote]
&lt;p&gt;The code snippet I provided in my earlier reply above should demonstrate how to do this for basically any value field.&amp;nbsp; I&amp;#39;m unclear why you need to revert my suggested changes, as it doesn&amp;#39;t seem to add anything that isn&amp;#39;t still accomplished in my version (the &amp;quot;reviewed on&amp;quot; field seems to rely on totally unrelated data, no?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112130?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 16:09:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b95e905-8a93-4548-8e7e-ddef2d0ae5ba</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thank you so much for the reply Mike.&lt;/p&gt;
&lt;p&gt;I wanted to prepopulate some data to BCrevierwer for example&amp;nbsp; ABC&amp;nbsp; is the BC reviwer already stored in the table StudyMedicalReviewer to reference studyrequest ID.&lt;/p&gt;
&lt;p&gt;If we get the task for same studyRequest Id I need to have ABC as the BCreviwer for the requestId.If we want to change that name we can change too--this is the requirement&lt;pre class="ui-code" data-mode="text"&gt;a!localvariable{
local!BCreviewer:rule!ISR_toget_BC_Reviewer(ISR_Studyrequest: ri!studyRequest.studyRequestId),
//rule to get the BC reviwer from the table with reference studyrequest Id//

 a!sideBySideLayout(
          items: {
            a!sideBySideItem(
              item: a!textField(
                label: &amp;quot;Business Conduct Reviewer&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                value: if(rule!APN_isBlank(local!BCreviewer),ri!studyMedicalReview.BCReviewedBy,local!BCreviewer),
                saveInto: if(rule!APN_isBlank(local!BCreviewer),ri!studyMedicalReview.BCReviewedBy,(local!BCreviewer,ri!studyMedicalReview.BCReviewedBy)),
                showWhen: if(
                  local!businessCounduct,
                  true(),
                  false()
                ),
                required: if(
                  ri!studyMedicalReview.decision = cons!ISR_TEXT_DECISION_MEDREVDEC_FRINFO_CODE,
                  false(),
                  true()
                )
              )
            ),
            a!sideBySideItem(
              item: a!dateField(
                label: &amp;quot;Business Conduct Reviewed On&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                value: if(rule!APN_isBlank(local!BCrevieweddate),ri!studyMedicalReview.BCReviewedOn,local!BCrevieweddate),
                //If the rule value is not there I mean if there is no reviewer for that studyRequestID then value goes to table// 
                saveInto: if(rule!APN_isBlank(local!BCrevieweddate),{ri!studyMedicalReview.BCReviewedOn},{local!BCrevieweddate,ri!studyMedicalReview.BCReviewedOn}),
            
                
               
              )
            )
          }
        ),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have write the above code. for example ABC is BC reviewer for study RequestId=2 then ,in the form BC reviewer is populated as ABC. if we keep that ABC without editing then it wont saved into the DB again with the same StudyRequestID.If I made it to ABCD then it will saved into DB.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So how can I save the prepopulated data without editing into the table again with same studyrequest id=2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could please help me?&lt;/p&gt;
&lt;p&gt;Many thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112126?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 14:06:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d2ca4b3-063b-4cae-a689-cb1e1e1773f5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You will need to make sure the value you want ends up being populated into your Rule Input CDT.&lt;/p&gt;
&lt;p&gt;If you know the value in advance and can evaluate the expression that originally populates it, earlier (as in prior to the form being reached), one method is to pre-populate the CDT before the first task is reached.&lt;/p&gt;
&lt;p&gt;However if you&amp;#39;re just referring to a value pre-populated on the second task, then I&amp;#39;m unclear why the value isn&amp;#39;t already stored in your PV CDT that you&amp;#39;re passing into the second form.&amp;nbsp; If it is, then you shouldn&amp;#39;t necessarily need to re-initialize it on that form and shouldn&amp;#39;t need to mess with the local variable at all.&lt;/p&gt;
&lt;p&gt;Finally, one of the simplest and most standard ways to store the value captured in the local variable into the rule input CDT field, upon form submission (regardless of the answer to the above question), is to use an a!save() statement in the saveInto of the Submit button, and copy the local variable&amp;#39;s value into the correct field.&amp;nbsp; I try to reserve this method for when it&amp;#39;s truly necessary and won&amp;#39;t add unnecessary complexity.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s hard to judge here without being able to take your full code into context... but I&amp;#39;d suggest revising a few things here...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  
  /* instead of multiple messy if(isNull()) statements, simply do that check here, then only use this local variable until Submit time */
  local!BCreviewer: a!defaultValue(
    value: ri!studyMedicalReview.BCReviewedBy,
    default: rule!ISR_toget_BC_Reviewer(ISR_Studyrequest: ri!studyRequest.studyRequestId)
  ),

  (...)
  
    value: local!BCReviewer,
    saveInto: local!BCReviewer,
  
  (...)
  
  primaryButtons: {
    a!buttonWidget(
      label: &amp;quot;Submit&amp;quot;,
      submit: true(),
      
      saveInto: {
        ri!buttonPressed,
        
        a!save(
          ri!studyMedicalReview.BCReviewedBy,
          local!BCReviewer
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112119?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 12:05:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28f36493-732d-4a6c-b57f-8b7032e3f06a</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Hi Sanchit,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am trying to auto populate some details in the field reviewer, By following the below code I am able to populate the data from the previous task .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But my question is if I didnt made any changes in the prepopulated data it was not saved into the db.How can I savethe prepopulated data as it is into DB?&lt;/p&gt;
&lt;p&gt;Many thanks in advance&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; local!BCreviewer:rule!ISR_toget_BC_Reviewer(ISR_Studyrequest: ri!studyRequest.studyRequestId),
 
 value: if(rule!APN_isBlank(local!BCreviewer),ri!studyMedicalReview.BCReviewedBy,local!BCreviewer)
 saveInto: if(rule!APN_isBlank(local!BCreviewer),ri!studyMedicalReview.BCReviewedBy,(local!BCreviewer,ri!studyMedicalReview.BCReviewedBy)),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112060?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 17:31:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:981641b4-4329-4809-896e-43b4d7e61506</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thanks you so much everything was worked out.Thanks alot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112058?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 17:21:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69ecff72-13d9-4110-82b3-2a00ea8f9e81</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Please use the insert code feature to paste the code.&lt;/p&gt;
&lt;p&gt;&lt;img height="91" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/pastedimage1682961623248v1.png" width="54" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Not sure what you are trying to do here but I think the syntax should be like this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;saveInto: if(
  rule!APN_isBlank(local!repeatedinternalcomment),
  {
    local!internalComment,
    a!save(
      ri!internalComment,
      &amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(
        commentId: if(
          rule!APN_isBlank(ri!internalComment.commentId),
          {},
          ri!internalComment.commentId
        ),
        comment: local!internalComment,
        isInternal: true(),
        reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,
        isActive: true(),
        createdBy: loggedInUser(),
        createdOn: now(),
        updatedBy: loggedInUser(),
        updatedOn: now()
      )
    )
  },
  {
    local!repeatedinternalcomment,
    a!save(
      ri!internalComment,
      &amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(
        commentId: if(
          rule!APN_isBlank(ri!internalComment.commentId),
          {},
          ri!internalComment.commentId
        ),
        comment: local!repeatedinternalcomment,
        isInternal: true(),
        reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,
        isActive: true(),
        createdBy: loggedInUser(),
        createdOn: now(),
        updatedBy: loggedInUser(),
        updatedOn: now()
      )
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112057?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 17:04:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4157d60d-f5bf-4d1c-8f32-44bd53b518da</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thank you very much Sachin Gupta,&lt;/p&gt;
&lt;p&gt;It was helpful,Sorry to trouble you again&lt;/p&gt;
&lt;p&gt;Does it works when there are two local variables&amp;nbsp;&lt;/p&gt;
&lt;div class="wide-content-host"&gt;
&lt;div class="Vm3e5 L8m1x"&gt;
&lt;div class="ulb23 GNqVo yxtKT allowTextSelection"&gt;
&lt;div&gt;
&lt;div class="rps_9feb"&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div class="x_elementToProof x_ContentPasted0"&gt;saveInto: {if(rule!APN_isBlank(local!repeatedinternalcomment),
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (local!internalComment,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a!save(&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ri!internalComment,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; commentId: if(&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rule!APN_isBlank(ri!internalComment.commentId),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {},&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ri!internalComment.commentId&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; comment: local!internalComment,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isInternal: true(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isActive: true(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createdBy: loggedInUser(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createdOn: now(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updatedBy: loggedInUser(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updatedOn: now()&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (local!repeatedinternalcomment,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a!save(&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ri!internalComment,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#39;type!{urn:com:appian:types:ISR}ISR_StudyComment&amp;#39;(&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; commentId: if(&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rule!APN_isBlank(ri!internalComment.commentId),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {},&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ri!internalComment.commentId&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; comment: local!repeatedinternalcomment,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isInternal: true(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reviewStage: cons!ISR_TEXT_REVIEWSTAGE_CODE_MEDIREV,&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isActive: true(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createdBy: loggedInUser(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createdOn: now(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updatedBy: loggedInUser(),&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updatedOn: now()&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/div&gt;
&lt;div class="x_ContentPasted0"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )))&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="g4Y3U"&gt;&lt;/div&gt;
&lt;div class="th6py full HJy2l"&gt;
&lt;div class="body-156"&gt;&lt;span class="ms-Button-flexContainer flexContainer-313"&gt;&lt;i class="ms-Icon root-90 ms-Button-icon icon-470"&gt;&lt;span class="FLwLv"&gt;&lt;i class="Q0K3G ___198tor0 f14t3ns0 fne0op0 fg4l7m0 fmd4ok8 f1sxfq9t"&gt;could you please help me&lt;/i&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112050?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 16:04:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a50e5ab-8efe-44cf-bb08-f76a5156bcf0</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;This is not how this should be configured.&lt;/p&gt;
&lt;p&gt;You need to save the result of expression rule called inside&amp;nbsp;&lt;em&gt;value&lt;/em&gt; parameter in a localVariable and then use that variable in&amp;nbsp;&lt;em&gt;value&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em&gt;saveInto also&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;to store the updated value in the same variable so that the updated value reflects as a display value.&lt;/p&gt;
&lt;p&gt;Please try updating your code with the below code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: rule!T_EX(name: ri!expensedetails.name),
  a!paragraphField(
    label: &amp;quot;comments&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    value: local!data,
    saveInto: { local!data, ri!expensedetails.comments },
    refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
    required: true,
    height: &amp;quot;MEDIUM&amp;quot;,
    validations: {},
    showWhen: ri!hra
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/112049?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 15:33:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fcf44fd-7a2f-4370-ae8f-de20024efc4a</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thank you so much Romulo,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now I can retrieve the data so to prepopulate the same thing I have placed it in value parameter. when I open the form the previous data is prepopulating so I wanted it to change to something more with the existing data .so when I am doing that the form refreshes automatically and the modified data is not visible in the form.so how can I get rid of this could you please help me?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; label: &amp;quot;comments&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; value: rule!T_EX(name:ri!expensedetails.name),&lt;br /&gt; saveInto: {ri!expensedetails.comments},&lt;br /&gt; refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt; required: true,&lt;br /&gt; height: &amp;quot;MEDIUM&amp;quot;,&lt;br /&gt; validations: {},&lt;br /&gt; showWhen: ri!hra=true,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111864?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 07:42:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be5f231e-543c-4470-9615-c383179c6887</guid><dc:creator>R&amp;#243;mulo</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome.&lt;br /&gt;&lt;br /&gt;This will retrieve all the fields:&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/pastedimage1682581241934v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;For more info, please check:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.1/fnc_system_a_queryentity.html"&gt;https://docs.appian.com/suite/help/23.1/fnc_system_a_queryentity.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Also &lt;a href="/members/putlurus9219"&gt;sireesha&lt;/a&gt;, please vote up and verify the answer as correct, in order iit will be helpful for other user in the community.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;R&amp;oacute;mulo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111819?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 13:48:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:320cf8f1-f07d-4472-8f0a-7d1ee40affe5</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="138450" url="~/discussions/f/best-practices/28491/how-can-i-prepopulate-the-fields-of-current-task-with-previous-completed-task-details/111817#111817"]Can I get an expression rule to retrieve the specific fields only from data store entity.[/quote]
&lt;p&gt;a!queryEntity has the capability to specify the particular fields you want returned, when all you want is a subset of available fields.&amp;nbsp; What have you tried?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111817?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 13:42:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84627aa8-42d3-4a85-aa53-fcd44f4c0f51</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you so much it was working need one more help.Can I get an expression rule to retrieve the specific fields only from data store entity.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111766?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 20:44:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f97e3877-94d1-4fac-83d6-9a98eb01c63a</guid><dc:creator>R&amp;#243;mulo</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/putlurus9219"&gt;sireesha&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;Yes, but please bear in mind the following:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-Diferrent Processes: &lt;/strong&gt;After see your last comment to Mike, and assuming that you have data store/database already configured, I may say that what you really want is populate a form with data which was previously stored (different process). So when a user instance a new task from a new process you want to display that data if exist (Name, Age, Country, Mail).&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;To achieve this, you have to create a way to retrieve that data in a local variable when it loads the interface. For instance you can use a expression rule to retrieve that data:&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/20/pastedimage1682455513500v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;To know how to create a query entity rule, visit this page:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.1/fnc_system_a_queryentity.html"&gt;https://docs.appian.com/suite/help/23.1/fnc_system_a_queryentity.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-Same Process:&lt;/strong&gt; If the case is different tasks in the same process, you have to follow my first comment.&lt;br /&gt;&lt;br /&gt;Let us know if you made it :) ,&lt;br /&gt;&lt;br /&gt;R&amp;oacute;mulo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111748?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 16:24:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:708d7688-0cd9-4767-9024-91065ddb6de3</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="138450" url="~/discussions/f/best-practices/28491/how-can-i-prepopulate-the-fields-of-current-task-with-previous-completed-task-details/111743#111743"]My requirement is how can I prepopulate the form details of previously completed tasks in the current task.[/quote]
&lt;p&gt;My assumption is that &amp;quot;the current task&amp;quot; is a subsequent task in the same process instance as the &amp;quot;previously completed task&amp;quot;.&amp;nbsp; Assuming this is true, then what I said above, and what Romulo demonstrated in their series of screenshots above, is applicable to your case.&amp;nbsp; That is, the earlier task(s) will need to be configured to save their data / changes into the Process PV(s), and then subsequent task(s) will need to be configured to pass any necessary value(s) into their Task Forms.&lt;/p&gt;
&lt;p&gt;The necessary configuration for this is of a fairly basic level in terms of learning Appian development, so I&amp;#39;d recommend you complete the Appian-supplied training course(s) on Process Model design as these concepts should be covered there.&amp;nbsp; Have you explored any of the available online courses yet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111743?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 16:03:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:785fd881-aa39-4223-9878-b7cdc7d522a2</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the reply. In detailed manner I will explain here for example if there is form with name,age,mail,country fileds .Once the user fill this form it was stored into data store right.&lt;/p&gt;
&lt;p&gt;My requirement is how can I prepopulate the form details of previously completed tasks in the current task.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope I explained in better way If you have any solution please share with me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111741?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 15:59:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20e4e6de-7a2f-4212-93a6-bf6dbec7e9c8</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thank you for the reply I will check this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111740?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 15:58:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:522fd4a6-226a-4366-b40f-ee806314547c</guid><dc:creator>sireesha</dc:creator><description>&lt;p&gt;Thank you for the reply&amp;nbsp; , need some clarification that with the above one can I populate the details in the same form&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111738?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 15:43:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81312e09-af06-4eef-8b7e-da26cdbe655d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;There are as many valid answers to this as there are different implementation approaches - if you&amp;#39;re looking for something specific, or having issues with anything in particular, you&amp;#39;ll need to provide quite a bit more detail in order to wring anything useful out of us here.&lt;/p&gt;
&lt;p&gt;However in general, the answer to this will always be some variation of: for task 1, pass any details (usually centered around user-entered info) out into PV data, and for subsequent task(s), pass any relevant information into the task form via rule input(s).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I prepopulate the fields of current task with previous completed task details</title><link>https://community.appian.com/thread/111736?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 15:26:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec8af58a-facc-457c-a12c-4d058dc8850f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This page in the documentation might help you.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.1/Working_with_Data_in_Process.html#how-the-data-flows-together"&gt;docs.appian.com/.../Working_with_Data_in_Process.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>