ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.

SuiteTalk>ファイルを送信してからカスタムフィールドにファイルを添付

編集済:Jun 2, 2025 2:48PM SuiteCloud / カスタマイズ

適用

製品: NetSuite 2024.2

シナリオ

PDF、JPGなどのファイルを必要とするレコードに新しいファイルをアップロードします。

解決策

このような機能を実現するには、2つのリクエストを使用します。

1. NetSuiteのファイルキャビネットにファイルをアップロードするためにADDリクエストを使用します。ファイルは文字列として表す必要があります。

<soapenv:Envelope
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:docFileCab='urn:filecabinet_2019_2.documents.webservices.netsuite.com'
    xmlns:platformMsgs='urn:messages_2019_2.platform.webservices.netsuite.com'>
    <soapenv:Header/>
    <soapenv:Body>
        <add xsi:type='platformMsgs:AddRequest'>
            <record xsi:type='docFileCab:File'>
                <name xsi:type='xsd:string'>TestFile.jpg</name>
                <fileType xsi:type='xsd:string'>_JPGIMAGE</fileType>
                <content xsi:type='xsd:base64Binary'>/9j/4AAQSkZJRgABAQEASABIAAD/CgAAAAAAAAAAAA ...(content omitted)</content>
            </record>
        </add>
    </soapenv:Body>
</soapenv:Envelope>

2. 特定のレコードに対するADDリクエストを使用し、最近アップロードされたファイルのファイルIDを指定します

<soapenv:Envelope
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:listEmp='urn:employees_2019_2.lists.webservices.netsuite.com'
    xmlns:platformCore='urn:core_2019_2.platform.webservices.netsuite.com'
    xmlns:platformMsgs='urn:messages_2019_2.platform.webservices.netsuite.com'>
    <soapenv:Header/>
    <soapenv:Body>
        <add xsi:type='platformMsgs:AddRequest'>
            <record xsi:type='listEmp:Employee'>
                <customFieldList xsi:type='platformCore:CustomFieldList'>
                    <customField internalId='123' scriptId='customscript_employeepicture' xsi:type='platformCore:SelectCustomFieldRef'>
     
タグ付けされた:

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー