Hello Appsheet community… Long time listener. First time caller.
I am using the Start: tag on an e-mail template to create a list on my attachment. When using Start:, you have to provide it with a list of Ref values. I am struggling to find a way to remove ref values based upon having duplicate data in one of their columns. I don’t know if that makes sense.
I am trying to return a list of every staff member that my team supported in a specific time period. I am trying to show how much support we provided to each of these specific job titles. When I run my script, it is returning duplicates. Because we may have supported three doctors in that time period or four nurses, etc. I do not want duplicates. I want a unique [Staff_JobCode] per row.
Here is my current script:
<<START:
SELECT(
Staff[Staff_ID],
IN(
[Staff_ID],
SELECT(
Participants[(FK) Staff_ID],
AND(
IN(
[(FK) MIs_ID],
SELECT(
MIs[MIs_ID],
AND(
[MIs_Date] >= [Reports_StartDate],
[MIs_Date] <= [Reports_StopDate],
[(FK) InteractionTypes_ID] = "4",
[MIs_Active]
),
FALSE
)
),
[Participants_Active]
),
FALSE
)
),
TRUE
)
>>
<<[Staff_JobCode]>>
<<END>>
Thank you all in advance for your help.