Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Text Box with Action to Change SQL Query

latimo1
7 - Meteor

I can't figure out what I am doing wrong:

 

latimo1_0-1679946314575.png

 

Dynamic Input Query:

 

select "Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Id,
"Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Name,
"Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Contractor__c,
"Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Amount__c,
"Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Description__c,
"Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Type__c
from "Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c
where
"Mitsubishi Electric Trane HVAC US LLC"."Mitsubishi Electric Trane HVAC US LLC".Kumo_Coin_Transaction__c.Contractor__c in ('0015300000LeCKOAA3','0015300000LeCKmAAN')

 

Replace String:

 

latimo1_1-1679946435089.png    Error at char(0): Empty expression

 

latimo1_2-1679946527731.png

 

1 REPLY 1
JORGE4900
8 - Asteroid

Hi there @latimo1 

 

Looks like you need to select the part that you want to dynamically change like this tool shows. This assumes that you are replacing the whole in statement. This means that you should be building many options for your users to select an IN statement with two or multiple values.

 

Also; make sure you select the Preview button on your dynamic input tool to make sure the query is working properly.

 

If you only have single value codes on a list, you may have to build a chained app to process the possible multiple-value-code selected and concatenate it with the summary tool to create the IN  statement.

 

Spoiler
2023-03-27_12-57-49.jpg
Spoiler
2023-03-27_13-35-57.jpg
Labels