After Record action existing page does not refresh the Interface or grid

Hello,

I have a record action which shows "Add comment" and after completing/adding the comment details the record action should get updated to database or record. But it is not refreshing dashboard or interface. Only after page refresh page only it's refreshing but not immediately after the action submission. 

a!columnLayout(
contents: {
a!recordActionField(
actions: a!recordActionItem(
action: 'recordType!{6d2a7f52-9952-4737-bb95-d3f3a29c06ac}PIMS Project Details.actions.{4e341a40-54be-42c6-ac1e-7e52004c1fca}comment',
identifier: ri!projectDetails['recordType!{6d2a7f52-9952-4737-bb95-d3f3a29c06ac}PIMS Project Details.fields.{dedeac6d-7da7-4635-82db-b4816e2daa36}projectId']
),
style: "SIDEBAR_PRIMARY",
display: "LABEL"
),

},

Thanks,

Chiranjeevi

  Discussion posts and replies are publicly visible

Parents Reply
  • a!queryRecordType(
      recordType: 'recordType!{02a27db2-7e89-498c}XXX Project Comments',
      fields: {
        if(
          a!isNullOrEmpty(ri!selection),
          {},
          ri!selection
        )
      },
      filters: a!queryLogicalExpression(
        operator: "AND",
        filters: {
          a!queryFilter(
            field: 'recordType!{02a27db2-7e8945bbd9162}XXX Project Comments.fields.{254fbd11-79e8-48cb-a5c0-61fa61bcb400}projectId',
            operator: "=",
            value: ri!projectId
          ),
          a!queryFilter(
            field: 'recordType!{02a27db2-7e89-494d645bbd9162}XXX Project Comments.fields.{d78a66e6-50ad-433d-b2f3-060522553272}roleId',
            operator: "=",
            value: ri!roleId
          ),
          ri!filters
        },
        ignoreFiltersWithEmptyValues: true
      ),
      pagingInfo: if(
        a!isNullOrEmpty(ri!pagingInfo),
        a!pagingInfo(1, 5000),
        ri!pagingInfo
      )
    )

      and  

    Here I am attaching the inside the expression rule. Can you please check?

Children
  • 0
    Certified Lead Developer
    in reply to Chiranjeevi Ghantasala

    That looks fine - you don't have any internal local variables which is what I was worried about (it would be fine but sometimes people don't realize that the cached internal local variables in expression rules like this might not be updating when they think they would).

    I know it might not seem to be required, but what if you add a "sync records" node following your Write Record node above?  At least, just to see if it makes any difference to the behavior, whether or not you keep it there.  Because, the one thing I'm still worried about is that your record action completes and exits before the new entry has quite had time to sync (i'm not sure how fast this is usually supposed to happen, as i haven't had a chance to try this scenario for myself yet).