Task Editor: Pass Multiple Values

Is there anyway to pass multiple values from the task editor command buttons? Currently I have:

Text Customer:[Phone]

I’d like to also pass [Name] and [Guests]. I tried using format I saw with a ticket lister option such as:

Text Customer:Name=[Name],Phone=[Phone]

then trying to reference it with [:Name] and [:Phone], no luck. If this doesn’t work then I can look at doing an SQL call to pull the info.

Are the other fields defined in the task? Those are not read from entities it’s read from fields you define when building the task with task printer.

Maybe your using it differently than I am thinking.

You can pass the Task Id or Task Identifier to the rule and use a report expression to get the information you need.

<button text>=<command name>:[Id]
{REPORT OPEN TASK DETAILS:TSC.<custom field>:(TST=<task type name>) && T.Id="[:CommandValue]"}

or

{REPORT OPEN TASK DETAILS:T.<db field name>:(TST=<task type name>) && T.Id="[:CommandValue]"}

***If T.Id does not work try T.Identifier. I forget which it is.

Yes, there are a total of 3 defined custom tasks. Name, Guests, Phone. Currently I’m passing Phone and assigned [:CommandValue] to a local variable for use in the printer template.

Thats what I was thinking to do next.

This is not passing the Id. Any idea why?

Hmmm…It should be passing something. See what info is being passed using a Show Message with a [:CommandValue].

Try using this Report tag:

{REPORT OPEN TASK DETAILS:T.<db field name>:(TST=<task type name>) && T.Identifier="[:CommandValue]"}

I never defined a custom field [Id] or created any field for that. Do I need to do anything for me to be able pass the Task ID or is builtin?

Thats odd. So [Id] actually provides the default content. In this case its the notes section. It doesn’t provide the Id number. I wasn’t getting anything because I have it blank.

Oh, okay. I’ve always used a Identifier. Try using [Phone] instead of [Id].
If the phone number gets passed to the Command Value in the Show Message, then you should be able to use TSC.Phone="[:CommandValue]" instead of T.Identifier...

You are not using task printer to generate tasks are you? I think that was my confusion. You can define fields in the task printer and reference those in the widget.

Nope. I’m using the task editor just like Emre’s todo list tutorial.

Ok well with task printer you can define fields and reference those with commands etc in the editor.

I’ll probably mess around with that later. I really wanted to do something simple, but not they’re asking me to track when the customer was texted.

If thats the case I might as well change the SMS from URL Printer to Script/REST so I can get response codes from ClickSend. I just didn’t want to have to design a bunch of custom stuff since the Task Editor covers most everything.

I don’t have a date but I am working on. Potential partnership for a guest management system.

they’re asking me to track when the customer was texted.

Maybe log to db in the automation when SMS is sent, then when a ticket is created for the waiting entity tag the ticket with SMS time pulled from db? Or, perhaps, a local var unique to the guest?