We're updating the issue view to help you get more done. 

createData() doesn't create system friendly url

Description

If using a displaySystemFU.cfm file in your type's webskin folder and you create an object using createData(), the friendly url does not get created.

This is especially a problem when importing a lot of data with a custom import script.


As a temporary workaround until this is fixed, you can do the following right after you create the object (note: You will need to know the objectid, so it's advisable to create the objectid manually using application.fapi.getuuid() and setting it to a local variable to send to both createData() and setSystemFU() ). Basically the only big thing here is that I'm calling setSystemFU() manually (I'm just prepping up some other code to help set the example):

// create my object
objectid = application.fapi.getuuid();
stFarcryParams = {
objectid = objectid,
title = "My Title",
etc...
}
oWidgets.createData(stProperties=stFarcryParams, user="Import Script");
application.fc.factory.farFU.setSystemFU(objectid=objectid,typeName="mhCustomType");

Environment

None

Status

Assignee

Unassigned

Reporter

Jeff Coughlin

Labels

None

Components

Fix versions

Affects versions

6.0.1

Priority

Critical