Netsuite webservices上传并获取C#中的url

时间:2017-03-24 11:22:02

标签: file url netsuite

当我上传文件时,我会将 internalId 作为回复。 我的要求是获得 fileURL

例如:获取internalId ((RecordRef)(writeRes.baseRef)).internalId)) 上传后有没有办法获得 fileURL

1 个答案:

答案 0 :(得分:0)

您需要发送新请求以在上传文件后获取该文件:

var internalId = ((RecordRef)(writeRes.baseRef)).internalId));

RecordRef file = new RecordRef();
recordRef.internalId = internalId;
recordRef.type = RecordType.file;
recordRef.typeSpecified = true;

ReadResponse response = service.get(recordRef);

File file = (File)(response.record); 

var fileUrl = file.url;