Why is my deluge code not executing properly? (New and learning deluge)
I'm trying to update a sales order number through deluge for an automation I'm trying to build. What is wrong with it?
- /* replacing SO with SOR for sales order pre-fix */
- SO = salesorder.get("salesorder_number");
- replace = SO.replaceFirst("SO","SOR");
- /* display the above code when executed */
- info replace;
- /* this is where I start to lose what I'm doing unfortunately. Help me explain where I'm going wrong in updating the SO number here */
- SOR = Map();
- SOR.put(salesorder.get("salesorder_number"), replace);
- update = zoho.books.updateRecord("salesorders",organization.get("organization_id"),salesorder.get("salesorder_number"), SOR);
- INFO update;
I get the following error messege.