Issue with a!writeToDataStoreEntity() smart service

Certified Associate Developer

Hello everyone,

I'm trying to use the new a!writeToDataStoreEntity() smart service function on a form and running into a problem. Though I can successfully use the form I've created in Tempo when I try and use the same code on a site page I receive an error when I try to load the page: Variable(s) not found: chain!result.

I am using a process model with a start form to create the site page and the same error appears when I try and save the process model.

Has anyone run into this problem in 16.2 before?

OriginalPostID-214582

OriginalPostID-214582

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer
    @sanjays: The snippet in question is here:
    a!writeToDataStoreEntity(
    dataStoreEntity: cons!MMD_ENTITY_EVENTMESSAGE,
    valueToStore: cast('type!MMD_EventMessage', {
    EventID: index(
    local!eventList.data.RecordID,
    local!gridSelection.selected,
    -1
    ),
    Message: local!newMessageContent_txt,
    Sender: fn!loggedInUser(),
    Date: now()
    })
    )

    @TomTyan: yes, I'm seeing a stack trace and I've included it below.
Reply
  • 0
    Certified Associate Developer
    @sanjays: The snippet in question is here:
    a!writeToDataStoreEntity(
    dataStoreEntity: cons!MMD_ENTITY_EVENTMESSAGE,
    valueToStore: cast('type!MMD_EventMessage', {
    EventID: index(
    local!eventList.data.RecordID,
    local!gridSelection.selected,
    -1
    ),
    Message: local!newMessageContent_txt,
    Sender: fn!loggedInUser(),
    Date: now()
    })
    )

    @TomTyan: yes, I'm seeing a stack trace and I've included it below.
Children
No Data