loadLinkAndLoad(entry)

Hi
Why is there no Javascript function to Link and load a selected linked field?
Or is there? :thinking:

There is one, i am not sure if you can call it for specific field

var nodeId = param.getNewNodeId(XXX);
var path = ‘xxxxx’;
var query = db.getAPIQuery(path);
var entry = query.getAPIEntry(nodeId);
entry.loadAllLinkAndLoad();
entry.setCreateHistory(true);
entry.save();

Hi,

If you need to update a specific linkAndLoad field individually, you can use:
entry.loadLinkAndLoadField(domainId)
This is a newly supported method, so it has not been added to the documentation yet. We will update the documentation accordingly.

2 Likes