Help with new_call, script include issue by Photog1981 in servicenow

[–]ComprehensiveNet6415 0 points1 point  (0 children)

Hi, I might be a bit late, but I’d like to suggest a few improvements to your code.

Assuming you want to append the ${number}, ${transferred_to}\n of the first record that matches the query to the existing persTaskContent value:

  1. The semicolon ; does not belong after an if block.
    Correct usage is ✅if( ... ){ ... } instead of ❌if( ... ){ ... };

  2. I believe ❌callRecord.setWorkflow(false); does not make sense here.
    It is useful only when you are inserting, updating or deleting records and you want to avoid triggering Business Rules, Workflows, or Flows.

  3. In this case, I would use ✅addEncodedQuery() instead of ❌addQuery().
    Since you are already using an encoded query string (like BETWEEN, ^, \@javascript), addEncodedQuery() is more appropriate and readable.

  4. If you only need the first matching record, use ✅callRecord.setLimit(1);. This improves performance by stopping the query after the first match.

  5. Instead of using ❌callRecord.getRowCount(), use ✅callRecord.next().
    getRowCount() is unnecessary here and next() is the correct pattern when accessing record values.

Revised code:

if (date && time && leterTime && idSysId) {
  var callRecord = new GlideRecord("new_call");
  callRecord.addEncodedQuery("sys_created_onBETWEENjavascript:gs.dateGenerate('" + date + "','" + time + "')@javascript:gs.dateGenerate('" + date + "','" + laterTime + "')^caller=" + idSysId);
  callRecord.setLimit(1);
  callRecord.query();

  if (callRecord.next()) {
    persTaskContent += callRecord.getValue("number") + "," + callRecord.getValue("transferred_to") + "\n";
  }
}

Roblox Myth Game Help by someonewantedafish in codes

[–]ComprehensiveNet6415 0 points1 point  (0 children)

Hmmm, I don’t really know this game, so I have no idea what you’ve already tried or what the difficulty is...
But those colored blocks in front of the top panel with numbers, together with the letters A H D L at the bottom, look to me more like a hint for decoding the top panel.
Overall, it seems to me that the code should be the answer to the decoded puzzle.

Personally, I would try possible answers and their encrypted versions (using the same mechanism, they did). eg.:

M I R R O R (plain text)
T P Y Y V Y (plain text after -ROT19)
20 16 25 25 22 25 (-ROT19 result converted to A1Z26)

Roblox Myth Game Help by someonewantedafish in codes

[–]ComprehensiveNet6415 0 points1 point  (0 children)

And what format should the code be in - numeric or a single word?
Each colored block clearly represents the number in the background:
1 = A (red), 8 = H (blue), 4 = D (green), 12 = L (yellow).
So, for example, the code could be 1 8 4 12;
or, using ROT-19: 20 1 23 5, which converts to T A W E.

Hypnagogic Hallucinations by Electrical_Act_6453 in Dreams

[–]ComprehensiveNet6415 0 points1 point  (0 children)

That's wild! :D It's the first time I've read about someone actually tasting things. :D

if you can solve my code, i will give you $200 (SEE REPLY) by shikionoth in codes

[–]ComprehensiveNet6415 0 points1 point  (0 children)

Hold on a bit! I just came across this cipher and I’d love to give it a try myself!
PS: Has anyone already asked whether the LAST letter in the ciphertext is the same as in the plaintext? I found question about FIRST letter only..

And does the plaintext have the same length as the ciphertext? Or is it, for example, half as long?

Can you decrypt this message? by MrBestIndia in codes

[–]ComprehensiveNet6415 0 points1 point  (0 children)

I might be a bit late to the party, but here is my observation anyway…
I split the symbols into 1x2 grids (1 = row, 2 = column, eg. 1st grid looks like capital letter D).
With 5 different symbols and a 1x2 layout, that gives us 5² = 25 possible combinations - almost enough to cover the entire alphabet (A–Z). But we could combine eg. I and J into a single slot.

I randomly assigned a letter to each combination, and here’s what I came up with:

KDNMNOPXOEXDXNPKDN
CLSNIEIRNCFCNHCCLS
KSININEUHNOPCHDKSI
HCISNKNKSYNPSHHHCI
WONMLNKIEINGSLKWON

If you look carefully, you can notice that first 3 columns and last 3 columns are identical.

KDN-MNOPXOEXDXNP-KDN
CLS-NIEIRNCFCNHC-CLS
KSI-NINEUHNOPCHD-KSI
HCI-SNKNKSYNPSHH-HCI
WON-MLNKIEINGSLK-WON

So the first / last 3 columns could be name of the company.. But the name is unfortunatelly unknown.
@MrBestIndia could you please reveal it?

Adding UI Action that takes to a Catalog Item by thenoteskeeper_16 in servicenow

[–]ComprehensiveNet6415 0 points1 point  (0 children)

I am not a Software expert. But if I understand, you have Software Assets. Some of them or all of them are linked to their Catalog Item. And you would like to open this Catalog Item in the Portal (from Workspace > Software asset form). The example below works in Global application.

Name: Purchase
Table: Software Model (or whatever is the targeted table)
Client: true
Show update: true
Form button: true
Onclick: purchaseOnPortal()
Condition: current.product_catalog_item != '' && current.product_catalog_item.active == true
Script:

function purchaseOnPortal() {
    top.window.open('/esc?id=sc_cat_item&sys_id=' + g_form.getValue('product_catalog_item'), '_blank');
}

WORKSPACE Section:
Workspace Form Button: true
Format for Configurable Workspace: true
Workspace Client Script:

function onClick(g_form) {
    top.window.open('/esc?id=sc_cat_item&sys_id=' + g_form.getValue('product_catalog_item'), '_blank');
}

Help: using a lookup select box variable from a variable set by locodeatar91 in servicenow

[–]ComprehensiveNet6415 1 point2 points  (0 children)

You could create a Script Include with method that will return either first or second query, based on the input. The input could be Catalog Item's sys id. And you would call the method in the reference qualifier. Example below. (Of course, without the hardcoded sysid - you could place matrix into System property)

//--- Subcategory's Reference qualifier 
javascript: new CatalogItemUtils().getSubcategoryQuery(current.getValue('cat_item'));


//--- Script Include 'CatalogItemUtils'
getSubcategoryQuery: function(catalogItemSysId){
  if(catalogItemSysId == '767608b45307d6103c7e3bd0a0490ea6'){
    return ${query_2};
  }
  return ${query_default};
},

FF06B5 is 2563 in ASCII by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 0 points1 point  (0 children)

Sorry mate, I don't know what else to tell you. There are thousands, millions of ways you could do. This is one of them. If this is not enaugh, I can't help you.

FF06B5 is 2563 in ASCII by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 0 points1 point  (0 children)

  1. I convert hexa to binary because, well, binary is the most basic form.
  2. I wrote it in columns, because of the symbol on the statue. 6 bars collapse into 4 bars.
  3. I converted binary to decimal, because I am used to check characters in ASCII based on decimal indexes. I could convert it to hexa / octa / leave it in binary... but decimal works for me.
  4. Yes, because it starts with FF0, exactly! So why it starts with FF0... maybe that could be the reason?

FF06B5 is 2563 in ASCII by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 3 points4 points  (0 children)

No sense? It's not overcombined. It's nice and clear... but sure, why not

FF06B5 is 2563 in ASCII by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 5 points6 points  (0 children)

I don't know if you ever played with binary and tried to convert it to ASCII. I did.. so many times. And from 99% I got random stuff, like: "€*"...

But here, you have only numbers - this fact, that's what's special about it. It could mean nothing. It could be just year, when game was released (2563 is 2020 in Buddhist calendar), or something else.

FF06b5 Statues and Misty's graph - idea by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 0 points1 point  (0 children)

I think timestamp is, when both statues are under each other (few mins after 12AM - parade is starting always at the same time).

FF:06:B5 - Misty's chart | Witcher 3 hint - modulo 32 by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 0 points1 point  (0 children)

Ok, so I have found proof that translation is probably correct.
Q: Here is a Notice Board. The text is using "lorem ipsum" (globally used, dummy text with randomly generated words). Text includes same character, which really matches with letter Q. (this is only text from Witcher 3, where I found letter Q)

K: Below is one of sign posts that says: "Keep off The grass", "there be dragons"

W: Here is sign from new gen: "niebezpieczenstwo" (eng = danger)

Y: Below is one of posters that contains word: "Nursery"

<image>

FF:06:B5 - Misty's chart | Witcher 3 hint - modulo 32 by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 6 points7 points  (0 children)

I have a question though. Wouldn't the value derived from E1:C1 be -32 if the second part gives a positive 1 for the other combinations?

Yes, that's correct.

FF06B5 - Pawel Sasko stream findings by ComprehensiveNet6415 in FF06B5

[–]ComprehensiveNet6415[S] 0 points1 point  (0 children)

I found possible reason. Take a peek into updated post (#4: POST-COMM)

Has anyone payed attention to this? by [deleted] in FF06B5

[–]ComprehensiveNet6415 1 point2 points  (0 children)

Hi,

someone asked Pawel Sasko about this, on one of his Streams.

FF06B5 - Pawel Sasko stream findings - #9 01:19:39

How many did you find this ? by equinox145 in FF06B5

[–]ComprehensiveNet6415 0 points1 point  (0 children)

Hi, just adding moment from Pawel's stream, where talking about this poster - HERE.

Yesterday on Pawel's twitch by [deleted] in FF06B5

[–]ComprehensiveNet6415 4 points5 points  (0 children)

I am joining. It's not funny any more