Saved Search to CSV via Netsuite Suitescript

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 12

  • @oscarsagales5157
    @oscarsagales5157 2 ปีที่แล้ว

    Good Video!
    You can edit savedSearch filters with this method:
    const indexOfSearch = search.filters.findIndex(object => {
    return object.name === 'internalid';
    });

    if(indexOfSearch >= 0) search.filters.splice(indexOfSearch, 1);

    search.filters.push(n_search.createFilter({
    name: 'internalid',
    join: 'invoice',
    operator: 'anyof',
    values: record.id
    }));
    search.save();

  • @monikaphalle9174
    @monikaphalle9174 3 ปีที่แล้ว

    Why mainline true in saved search? And how we can read data in that excel file using Suitscript?

  • @daviddjkedbek-ultra
    @daviddjkedbek-ultra ปีที่แล้ว

    is there a way to keep refreshing the data within the same file using the same script?

    • @shobipersonal
      @shobipersonal  ปีที่แล้ว +1

      Keeping the same file name at same path will overwrite the data.

    • @daviddjkedbek-ultra
      @daviddjkedbek-ultra ปีที่แล้ว

      Thanks for the quick turnaround @@shobipersonal it worked as mentioned only having an error when running the scheduled version (ReferenceError: "require" is not defined) have you encountered this? is there a quick way to update the .js to correct this

    • @shobipersonal
      @shobipersonal  ปีที่แล้ว

      @@daviddjkedbek-ultra need to check your code, how are you loading the libraries ? In script it should be define instead of require.

  • @pranjalikhadse326
    @pranjalikhadse326 3 ปีที่แล้ว

    when I try the exact code it gives me error SSS_MISSING_REQD_ARGUMENT. Do you know how to resolve it

  • @obamania2009
    @obamania2009 7 หลายเดือนก่อน

    how come you didn't include the code?

    • @shobipersonal
      @shobipersonal  7 หลายเดือนก่อน

      Sorry, didn't get you

  • @its_me_N_I_H_A_L
    @its_me_N_I_H_A_L 3 ปีที่แล้ว

    if my result is more than a million rows then is that work?

    • @shobipersonal
      @shobipersonal  3 ปีที่แล้ว

      Haven't tested, but it has file size limit as per file cabinet.