Hi Sanjay,
What you would need to do for this is the following:
I assume you show the data grid somewhere in your application of an entity, let's call it TestObject. You can create an action button on that page with a microflow which creates a new object in your non-persistant entity TestObjectNP, and opens a newEdit page.
This newEdit page has a data view of TestObjectNP, with inside this data view the attributes that you want the user to fill in (your TestObjectNP should have the same attributes as the the ones you want to save to TestObject)
On this newEdit page you place another button with a save microflow on it. In this microflow you do the following:
- start with doing validations on your non-persistant object TestObjectNP to make sure the data is valid.
- Once your validations succeeded, you have to create a new object of TestObject
- Fill TestObject attributes with the values of TestObjectNP,
- Commit TestObject (with refresh otherwise you won't see it the first time)
- Close the page.
Hope this helps!