I have a excel file where there are too columns one is constant name and another is constant value .I need to upload a the file in an interface using file upload component and after clicking a submit button in the interface i need to fetch the data in the excel and update the constant values for respected constants . will anyone please guide me to achieve this scenario ?I have also given the snap of the excel sheet ,please find that below.
Thanks in advance !
Discussion posts and replies are publicly visible
hi bisheswar01 Initially upload a file from UI, save the data of the file in a pv!variable, and pass that pv to UI from the same process model. show the data the UI in a grid format,make the edits for your data and then submit and save the data
How you want the interface, you want it as a Startform ? Or standalone userinterface. If it's standalone interface where you gonna upload a File , use SubmitUploadedFiles (You can't use this in startform or task) to save the file into Appian and use readexcelwithPaging which comes with Exceltools plugin to read the uploaded file contents and show it on editable grid . After editing give user a option to run a processmodel to update the constant.
Hi bisheswar01
1) Provide a interface where user can update the excel file
2) Once user click on the submit button you can read the excel file using the plugin
readexcelsheet( excelDocument: cons!OBJECT_LIST_TEST, sheetNumber: 1, startRow: 1 )
it return the ExcelSheetResultSet which contains the data in the excel sheet and success response.
3) You can use the ' Update Constant ' plugin to update the value of the constants. use the above result set and call this node as MNI for each value it should update the data.
Hope its clear.
Thanks,
Bhargavi P.
can you please explain or give me a summary of using update constant plug in ? Or any link to understand that
https://docs.appian.com/suite/help/24.2/Update_Constant_Smart_Service.html
It's an smart service that you can use in your PM for updating constant values..
Do it as bhargavip7872 explain in his message...
When updating the constant value, take care of permissions
Hi bisheswar01 This is Appian provided smart service you can check in process model , we need to provide two inputs for this constant one is name and the other is with what value we are going to update, please keep this node in a swim lane and the assignment of it should be run as who ever designed the model to avoid security issues.
Smart service
there is another question also . Is there any plugin or smart services in appian for creating constant ?
I searched in process model but did not get that .
If there is any can you please give me a reference to read more about that ?
I don't think so, you can update or increment the constant.