Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

Text Box with Action to Change SQL Query

latimo1
Astéroïde

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 RÉPONSE 1
JORGE4900
Astéroïde

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.

 

Révélation
2023-03-27_12-57-49.jpg
Révélation
2023-03-27_13-35-57.jpg
Étiquettes
Auteurs des meilleures solutions