Java Client Setting relationship/app reference values

Comments

2 comments

  • Asistentka

    Hello, I have the same problem. Have you solved it Adrian?
    Could anyone help on this issue?

    0
    Comment actions Permalink
  • adrian.pcastro

    This worked for me

    ArrayList<FieldValuesUpdate> list = new ArrayList<FieldValuesUpdate>();
    List referencesList = new ArrayList();
    int[] identifiersArray = {14,2414,34141}; //list of identifiers of the related elements

    for (int identifier : identifiersArray) {

    Map map = new HashMap();
    map.put("value", identifier);
    referencesList .add(map);
    }

    list.add(new FieldValuesUpdate("externalId",referencesList ));

    ItemCreate item = new ItemCreate("myItemExternalId", list, Collections.<Integer> emptyList(), Collections.<String> emptyList());

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk