azure datafactory copy data how to query from salesforce with japanese characters where condition

ri,shoshun 431 Reputation points
2021-07-08T07:58:22.27+00:00

Use azure data factory copy data activity to query data from salesforce.
If SOQL where statement have Japanese characters , can not query data.
Example: 1 and 2 query 0 data, and 3 can query 1 data.
1, "SELECT id, name from account where name =" 名称1'"
2, "SELECT id, name from account where name like '名称%'"
3, "SELECT id, name from account where name like'%1'"

Please tell me how to solve it. Thank you very match!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,639 questions
0 comments No comments
{count} votes

Accepted answer
  1. ri,shoshun 431 Reputation points
    2021-07-09T07:39:28.91+00:00

    anonymous userChaudhari

    The below SOQL can query.

      WHERE NAME = CAST('名称1' AS VARCHAR)

    Thank you very much!


1 additional answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,921 Reputation points Volunteer Moderator
    2021-07-08T08:09:45.803+00:00

    If you are looking for a SQL query, you can use N in where clause like below:

    WHERE name = N'名称1'
    

    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.