Coder Social home page Coder Social logo

Comments (4)

germainvictor avatar germainvictor commented on August 15, 2024 1

It works very well 🔥

Thank you for your reply !

from apiv3-nodejs-library.

shubhamUpadhyayInBlue avatar shubhamUpadhyayInBlue commented on August 15, 2024

Hi @germainvictor
Can you please share some sample data from the fileUrl or the fileBody that you are passing while using the contact import endpoint?

I would like to see the structure of the data that you are trying to import.

FYI in boolean type of attributes, we expect either true or false.

Also, I assume that you have created an attribute with "category": "normal" and "type": "boolean"

Happy to help!

from apiv3-nodejs-library.

germainvictor avatar germainvictor commented on August 15, 2024

Hi,

Here is an example of a fileBody :

EMAIL;PRENOM;NOM;AUTO_IS_SSO;AUTO_SSO_DOMAIN_NAME;AUTO_USER_ONBOARDED_TOTAL;AUTO_ORGANIZATION_NAME;AUTO_PROJECT_IN_PROGRESS_ORGANIZATION_TOTAL;AUTO_MONTHLY_BUDGET;AUTO_LAST_PROJECT_ORGANIZATION_NAME;AUTO_LAST_PROJECT_ORGANIZATION_DESCRIPTION
[email protected];Project creator;org 1;false;;9;Matters;9;100;CFP 4 Project 2;Energy for all 2!
[email protected];Project backer;org 1;false;;9;Matters;9;100;CFP 4 Project 2;Energy for all 2!

This is the attribute AUTO_IS_SSO that I am trying to update

Also, I assume that you have created an attribute with "category": "normal" and "type": "boolean"

I confirm that the attribute is: "category": "normal" and "type": "boolean"

I contacted customer service and they told me that (but it doesn't work):

I would like to inform you that in order to update Boolean attributes, you have to use the true or false value and also add the attribute within "..".

Thank you for your help!

from apiv3-nodejs-library.

shubhamUpadhyayInBlue avatar shubhamUpadhyayInBlue commented on August 15, 2024

Hi @germainvictor
I checked and found that there is an inconsistency on our side with the usage of boolean attributes. The solution that I suggested above works fine for the single create contact endpoint. But,

  • When you use the contact import API you have to pass the values of boolean attributes as yes or no
    Example: fileBody : EMAIL;BOOL\n"[email protected]";yes\n"[email protected]";no

So, instead of passing true you will have to pass yes and for false you must pass no. It is a known issue and we would fix it on our side. Apologies for the inconvenience caused.

Do let me know in case you have any queries further.
Happy to help!

from apiv3-nodejs-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.