cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build app transaction data not being saved to Visual cloud function DB

depratihari
Explorer
519

Hi Community Members,

I am trying to create a Build app & bound the data of Build app data entry fields to Visual Could function entity fields.

Transaction screen Page in Canvas Submit button on tap event "Create data record" Data Function is used.

Data Variable linkage to VCF entity is maintained

But while testing the app data is being saved to VCF DB with a blank record means only UUID is auto inserted but rest of the fields are still blank. (Screen shot attached), can anyone help here to know what went wrong ?

 

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

I am assuming your data variable is of type new (not list or single record) - this is an important piece of information. And as @Jakub_Roguski mentioned, best to show where you populate that "new" type of data variable, which is empty by default. Also, it is worthwhile checking the Developer Tools when clicking the submit button, because you can see the payload being sent and therefore whether the record is being populated.

Dan_Wroblewski
Developer Advocate
Developer Advocate
I am assuming your data variable is of type new (not list or single record) - this is an important piece of information.

Accepted Solutions (1)

Accepted Solutions (1)

depratihari
Explorer
0 Kudos

Dan_Wroblewski, Thanks for your response.

I have verified and found data variable is set as "New data record".  Still its updating a blank entry in VCF DB.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Can you show the developer tools and that you are sending a payload to VCF? Also, are you getting back an output from the top output of the Create Record flow function? And can you in some other way verifying that you are sending the data?

Sending no data or not having permission are the most likely answers. After we eliminate those, we can look at if here is some bug in VCF.

depratihari
Explorer
0 Kudos
@Dan_Wroblewski , I found the mistake. Mistake was even after binding the screen field value variable to page variable i additionally configured events(component on change) to set the variable which was reason for making the variable value to blank. Now i removed event variable set functions & its working perfectly fine. Thank you very much for your guidance.

Answers (1)

Answers (1)

Jakub_Roguski
Product and Topic Expert
Product and Topic Expert

My first guess is that you haven't configured the "Create Record" block. When you click it, you will see on the right hand side of the screen configuration of the "Create Record". You have to specify two things: 1 - where to create the record (this will be the entity in your VCF backend); 2 - what to write in the new record (here you have to specify what variable or what value is to be written in each field of the new record).

If you forget the step 2, your new record will be empty - if missing data fields are not required in the entity.

Screenshot 2024-07-15 at 12.06.07.png

depratihari
Explorer
0 Kudos

Hi Jakub_Roguski , Appreciate your response on my query, Input for Submit event.jpgData Variable Type.jpgi have already created a create record block with Data entity & its fields linkage.(Screen Shot attached)

Jakub_Roguski
Product and Topic Expert
Product and Topic Expert
Depratihari, there rae still two things you should check: 1 - you use "Custom object" option as the source of data for new record - how do you map values in this "custom object"? Each input field must have the "Value" property mapped to some variable; 2 - what is the linkage between your input fields and the custom object you use as the source of data for the new record? When you click the "Custom object" property of your "create record" block, you should map the variable, used as "Value" for the input field to the particular property of the "Custom object" in your "Create record" block..
Jakub_Roguski
Product and Topic Expert
Product and Topic Expert
And one more thing: have you changed anything in your VCF AFTER you deployed it? If so, please try to deploy your VCF once again and update the integration in your application project. I had once issues with the VCF when I made changes in the entity definition but then I forgot to redeploy the changed VCF and to update the integration.