ようこそ ウェブサイトの 新しい見た目!
新しく改善されたウェブサイト体験を公開できることを嬉しく思います。
私たちは、お客様の訪問がさらに楽しく、有益なものとなるよう、一生懸命取り組んできました。新しいデザインは、簡単なナビゲーション、より速い読み込み時間、より直感的なユーザー エクスペリエンスを実現するために最適化されています。
最近の変更の概要:
このサイトはアクセシビリティを考慮して設計されており、ユーザーは VTAP の概念を簡単に理解し、高度なコーディング知識がなくてもツールを利用できます。各例にはわかりやすい説明とスクリーンショットが添えられているため、簡単に理解して実装できます。
これにより、技術的な背景に関係なく、誰でも自信を持ってプラットフォームを操作し、その機能を最大限に活用できるようになります。
楽しいブラウジングを!
VTAP のお客様の使用例
VTAP API でレコード更新の明細項目を管理するには、項目を追加または削除するときに特定の形式に従う必要があります。VTAP API で見積レコードの明細項目の追加と削除を処理する方法は次のとおりです。
行項目を追加するためのサンプルコード:
// すでに既存の明細項目の詳細があると仮定します
let existingLineItems = { hdnProductId1:’<product_record_id>’, productName1: '<product_name>', comment1: '', qty1: 1, listPrice1: 700.00};
let existingLineItems = {
hdnProductId1:’<product_record_id>’,
productName1: '<product_name>',
comment1: '',
qty1: 1,
listPrice1: 700.00
};
// 既存の見積レコードに新しい明細項目を追加します
let newLineItem = { hdnProductId2: ‘<product_record_id>’, productName2: '<product_name>', comment2: '', qty2: 5, listPrice2: 500.00};
let newLineItem = {
hdnProductId2: ‘<product_record_id>’,
productName2: '<product_name>',
comment2: '',
qty2: 5,
listPrice2: 500.00
// 既存の項目と新しい項目を結合する
let params = { module: 'Quotes', id: quoteId, // replace with the actual Quote ID ...existingLineItems, ...newLineItem, totalProductCount: 2 // Update this count as per the total number of line items};
let params = {
module: 'Quotes',
id: quoteId, // replace with the actual Quote ID
...existingLineItems,
...newLineItem,
totalProductCount: 2 // Update this count as per the total number of line items
// VTAP APIを使用してリクエストを送信します
VTAP.Api.Put('records', params, (error, response) => { if (error) { console.error("Error adding line item:", error); } else { console.log("Line item added successfully:", response); }});
VTAP.Api.Put('records', params, (error, response) => {
if (error) {
console.error("Error adding line item:", error);
} else {
console.log("Line item added successfully:", response);
}
});
行項目を削除するサンプルコード:
// 既存の明細項目を取得し、削除する項目を除外します
let lineItems = { hdnProductId1:’<product_record_id>’, productName1: '<product_name>', comment1: '', qty1: 1, listPrice1: 700.00, hdnProductId2: ’<product_record_id>’, productName2: '<product_name>', comment2: '', qty2: 5, listPrice2: 500.00};
let lineItems = {
listPrice1: 700.00,
hdnProductId2: ’<product_record_id>’,
// 2番目の行項目を削除したいとします
delete lineItems.hdnProductId2;delete lineItems.productName2;delete lineItems.comment2;delete lineItems.qty2;delete lineItems.listPrice2;
delete lineItems.hdnProductId2;
delete lineItems.productName2;
delete lineItems.comment2;
delete lineItems.qty2;
delete lineItems.listPrice2;
// 残りの行項目でペイロードを更新しました
let updatedPayload = { module: 'Quotes', id: quoteId, // replace with the actual Quote ID ...lineItems, totalProductCount: 1 // Update the count as needed};
let updatedPayload = {
...lineItems,
totalProductCount: 1 // Update the count as needed
// 更新されたリクエストを送信する
VTAP.Api.Post('records', updatedPayload, (error, response) => { if (error) { console.error("Error deleting line item:", error); } else { console.log("Line item deleted successfully:", response); }});
VTAP.Api.Post('records', updatedPayload, (error, response) => {
console.error("Error deleting line item:", error);
console.log("Line item deleted successfully:", response);
サインアップして最新のアップデートを受け取りましょう!
私は プライバシーポリシー Vtigerの。