ExerciseMulti with parameters in last choice causing issue

cId <- submitMulti [x, y] do 
        exerciseCmd cId Approve with 
        llCid = llCId

I get Test.daml:41:22: error:
parse error on input ‘=’
Perhaps you need a ‘let’ in a ‘do’ block?
e.g. ‘let x = 5’ instead of ‘x = 5’ in above daml

and I already have llCId in last command before this block.
I have also tried

I get llCid in

cId <- submitMulti [x, y] do
  exerciseCmd cId Approve with llCid

but i have already set it up in last line of code

Hi @Rohit_Mittal

There might be an indentation issue here.

Can you try this:

cId <- submitMulti [x, y] do 
	exerciseCmd cId Approve with 
		llCid = llCId

Hello all,

If using the Daml.Script submitMulti, does it not require a second parameter, which is a list of “read as” parties? From the docs Daml.Script — Daml SDK 2.9.4 documentation

Best Regards

@David_Martins
You’re correct, submitMulti does indeed require two lists of parties as the first two arguments. So, the syntactically correct code snippet must be

cId <- submitMulti [x, y] [] do 
	exerciseCmd cId Approve with 
		llCid = llCId